Symbol: bits
crypto/heimdal/kadmin/util.c
636
unsigned char bits[8];
crypto/heimdal/kadmin/util.c
652
bits[i] = (d1 << 4) | d2;
crypto/heimdal/kadmin/util.c
665
memcpy (key_data[i].key_data_contents[0], bits, 8);
crypto/heimdal/lib/hx509/crypto.c
1886
unsigned long bits)
crypto/heimdal/lib/hx509/crypto.c
1888
ctx->num_bits = bits;
crypto/heimdal/lib/hx509/crypto.c
3125
int ret, bits;
crypto/heimdal/lib/hx509/crypto.c
3130
bits = SIG_DIGEST;
crypto/heimdal/lib/hx509/crypto.c
3136
bits = SIG_PUBLIC_SIG;
crypto/heimdal/lib/hx509/crypto.c
3143
bits = SIG_SECRET;
crypto/heimdal/lib/hx509/crypto.c
3158
if ((sig_algs[j]->flags & bits) != bits)
crypto/heimdal/lib/hx509/crypto.c
3173
if (bits & SIG_SECRET) {
crypto/heimdal/lib/hx509/crypto.c
3206
int bits, ret;
crypto/heimdal/lib/hx509/crypto.c
3211
bits = SIG_DIGEST | SIG_PUBLIC_SIG | SIG_SECRET;
crypto/heimdal/lib/hx509/crypto.c
3213
bits = SIG_DIGEST;
crypto/heimdal/lib/hx509/crypto.c
3215
bits = SIG_PUBLIC_SIG;
crypto/heimdal/lib/hx509/crypto.c
3227
if ((sig_algs[i]->flags & bits) == 0)
crypto/heimdal/lib/hx509/crypto.c
3248
if (bits & SIG_SECRET) {
crypto/heimdal/lib/hx509/crypto.c
824
unsigned long bits;
crypto/heimdal/lib/hx509/crypto.c
839
bits = default_rsa_bits;
crypto/heimdal/lib/hx509/crypto.c
842
bits = ctx->num_bits;
crypto/heimdal/lib/hx509/crypto.c
844
ret = RSA_generate_key_ex(private_key->private_key.rsa, bits, e, NULL);
crypto/heimdal/lib/hx509/hxtool.c
1234
int bits = 1024;
crypto/heimdal/lib/hx509/hxtool.c
1246
bits = optbits;
crypto/heimdal/lib/hx509/hxtool.c
1252
ret = RSA_generate_key_ex(rsa, bits, e, NULL);
crypto/heimdal/lib/krb5/crypto-pk.c
248
keylen = (et->keytype->bits + 7) / 8;
crypto/heimdal/lib/krb5/crypto-pk.c
61
keylen = (et->keytype->bits + 7) / 8;
crypto/heimdal/lib/krb5/crypto.c
104
*keybits = et->keytype->bits;
crypto/heimdal/lib/krb5/crypto.c
1857
if(et->blocksize * 8 < kt->bits || len != et->blocksize) {
crypto/heimdal/lib/krb5/crypto.c
1858
nblocks = (kt->bits + et->blocksize * 8 - 1) / (et->blocksize * 8);
crypto/heimdal/lib/krb5/crypto.c
1882
size_t res_len = (kt->bits + 7) / 8;
crypto/heimdal/lib/krb5/crypto.c
2410
if ((et->keytype->bits + 7) / 8 > size) {
crypto/heimdal/lib/krb5/crypto.h
74
size_t bits;
crypto/heimdal/lib/krb5/n-fold.c
44
const int bits = 13 % len;
crypto/heimdal/lib/krb5/n-fold.c
61
bb = 8 * i - bits;
crypto/heimdal/lib/krb5/pkinit.c
133
select_dh_group(krb5_context context, DH *dh, unsigned long bits,
crypto/heimdal/lib/krb5/pkinit.c
139
if (bits == 0) {
crypto/heimdal/lib/krb5/pkinit.c
146
if (bits < moduli[i]->bits)
crypto/heimdal/lib/krb5/pkinit.c
153
bits);
crypto/heimdal/lib/krb5/pkinit.c
2184
m1->bits = atoi(p1);
crypto/heimdal/lib/krb5/pkinit.c
2185
if (m1->bits == 0) {
crypto/heimdal/lib/krb5/pkinit.c
2377
_krb5_dh_group_ok(krb5_context context, unsigned long bits,
crypto/heimdal/lib/krb5/pkinit.c
2392
if (bits && bits > moduli[i]->bits) {
crypto/heimdal/lib/krb5/pkinit.c
40
unsigned long bits;
crypto/heimdal/lib/krb5/salt.c
268
keylen = et->keytype->bits / 8;
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
100
rr = (rr << bits) + (w0 >> (32 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
103
#define CAMELLIA_ROLDQo32(ll, lr, rl, rr, w0, w1, bits) \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
107
ll = (lr << (bits - 32)) + (rl >> (64 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
108
lr = (rl << (bits - 32)) + (rr >> (64 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
109
rl = (rr << (bits - 32)) + (w0 >> (64 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
110
rr = (w0 << (bits - 32)) + (w1 >> (64 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
94
#define CAMELLIA_ROLDQ(ll, lr, rl, rr, w0, w1, bits) \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
97
ll = (ll << bits) + (lr >> (32 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
98
lr = (lr << bits) + (rl >> (32 - bits)); \
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
99
rl = (rl << bits) + (rr >> (32 - bits)); \
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
288
uint8_t unused, *bits;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
299
bits = malloc(len);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
300
if (bits == NULL)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
302
memcpy(bits, asn1, len);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
304
bits[len - 1] &= (0xff << unused);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
306
*bits_out = bits;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
247
uint8_t *bits;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
248
ret = k5_asn1_decode_bitstring(asn1, len, &bits, &blen);
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
253
f |= (uint32_t)bits[i] << (8 * (3 - i));
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
255
free(bits);
crypto/krb5/src/util/verto/ev.c
1276
unsigned int bits = 14 - e;
crypto/krb5/src/util/verto/ev.c
1277
unsigned int half = (1 << (bits - 1)) - 1;
crypto/krb5/src/util/verto/ev.c
1278
unsigned int even = (m >> bits) & 1;
crypto/krb5/src/util/verto/ev.c
1281
m = (m + half + even) >> bits;
crypto/libecc/include/libecc/sig/sig_algs.h
111
u32 num, bitcnt_t bits);
crypto/libecc/src/examples/sig/rsa/rsa.c
253
ATTRIBUTE_WARN_UNUSED_RET static int _rsa_blind_exponent(nn_src_t e, nn_src_t mod, nn_t out, bitcnt_t bits, u8 dec)
crypto/libecc/src/examples/sig/rsa/rsa.c
263
ret = nn_lshift(out, out, bits); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
1052
int ec_verify_bos_coster(verify_batch_scratch_pad *elements, u32 num, bitcnt_t bits)
crypto/libecc/src/sig/sig_algs.c
1074
MUST_HAVE((num * bits) >= num, ret, err);
crypto/libecc/src/sig/sig_algs.c
1075
MUST_HAVE((num * bits) >= bits, ret, err);
crypto/libecc/src/sig/sig_algs.c
1076
max_bos_coster_iterations = (num * bits);
crypto/openssh/bitmap.c
143
size_t bits;
crypto/openssh/bitmap.c
153
bits = (b->top + 1) * BITMAP_BITS;
crypto/openssh/bitmap.c
156
bits--;
crypto/openssh/bitmap.c
158
return bits;
crypto/openssh/dh.c
494
dh_estimate(int bits)
crypto/openssh/dh.c
496
if (bits <= 112)
crypto/openssh/dh.c
498
if (bits <= 128)
crypto/openssh/dh.c
500
if (bits <= 192)
crypto/openssh/kexgexc.c
100
int r, bits;
crypto/openssh/kexgexc.c
109
if ((bits = BN_num_bits(p)) < 0 ||
crypto/openssh/kexgexc.c
110
(u_int)bits < kex->min || (u_int)bits > kex->max) {
crypto/openssh/openbsd-compat/sha1.c
24
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
252
prepare_key(struct shared_state *st, int kt, int bits)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
27
static int prepare_key(struct shared_state *st, int keytype, int bits);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
301
prepare_key(struct shared_state *st, int keytype, int bits)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
306
if ((r = sshkey_generate(keytype, bits, &privkey)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/sig_fuzz.cc
15
static struct sshkey *generate_or_die(int type, unsigned bits) {
crypto/openssh/regress/misc/fuzz-harness/sig_fuzz.cc
18
if ((r = sshkey_generate(type, bits, &ret)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/sig_fuzz.cc
19
fprintf(stderr, "generate(%d, %u): %s", type, bits, ssh_err(r));
crypto/openssh/regress/unittests/kex/test_kex.c
79
do_kex_with_key(char *kex, int keytype, int bits)
crypto/openssh/regress/unittests/kex/test_kex.c
89
ASSERT_INT_EQ(sshkey_generate(keytype, bits, &private), 0);
crypto/openssh/srclimit.c
133
int i, bits, first_unused, count = 0;
crypto/openssh/srclimit.c
142
bits = xa.af == AF_INET ? ipv4_masklen : ipv6_masklen;
crypto/openssh/srclimit.c
143
if (srclimit_mask_addr(&xa, bits, &xb) != 0)
crypto/openssh/srclimit.c
161
__func__, xas, bits, count, max_persource);
crypto/openssh/srclimit.c
264
int bits, max_sources, overflow_mode;
crypto/openssh/srclimit.c
294
bits = addr.af == AF_INET ? ipv4_masklen : ipv6_masklen;
crypto/openssh/srclimit.c
296
if (srclimit_mask_addr(&addr, bits, &find.addr) != 0)
crypto/openssh/srclimit.c
316
int bits;
crypto/openssh/srclimit.c
323
bits = p->addr.af == AF_INET ? ipv4_masklen : ipv6_masklen;
crypto/openssh/srclimit.c
324
addr_masklen_ntop(&p->addr, bits, s, sizeof(s));
crypto/openssh/srclimit.c
351
int bits, penalty_secs, max_sources = 0, overflow_mode;
crypto/openssh/srclimit.c
395
bits = addr->af == AF_INET ? ipv4_masklen : ipv6_masklen;
crypto/openssh/srclimit.c
396
if (srclimit_mask_addr(addr, bits, &masked) != 0)
crypto/openssh/srclimit.c
398
addr_masklen_ntop(addr, bits, addrnetmask, sizeof(addrnetmask));
crypto/openssh/srclimit.c
467
int bits;
crypto/openssh/srclimit.c
474
bits = p->addr.af == AF_INET ? ipv4_masklen : ipv6_masklen;
crypto/openssh/srclimit.c
475
addr_masklen_ntop(&p->addr, bits, s, sizeof(s));
crypto/openssh/srclimit.c
71
srclimit_mask_addr(const struct xaddr *addr, int bits, struct xaddr *masked)
crypto/openssh/srclimit.c
76
if (addr_netmask(addr->af, bits, &xmask) != 0 ||
crypto/openssh/srclimit.c
78
debug3_f("%s: invalid mask %d bits", __func__, bits);
crypto/openssh/ssh-dss.c
146
ssh_dss_generate(struct sshkey *k, int bits)
crypto/openssh/ssh-dss.c
150
if (bits != 1024)
crypto/openssh/ssh-dss.c
154
if (!DSA_generate_parameters_ex(private, bits, NULL, 0, NULL,
crypto/openssh/ssh-ecdsa.c
168
ssh_ecdsa_generate(struct sshkey *k, int bits)
crypto/openssh/ssh-ecdsa.c
174
if ((k->ecdsa_nid = sshkey_ecdsa_bits_to_nid(bits)) == -1)
crypto/openssh/ssh-ed25519.c
82
ssh_ed25519_generate(struct sshkey *k, int bits)
crypto/openssh/ssh-keygen.c
1105
u_int32_t bits = 0;
crypto/openssh/ssh-keygen.c
1153
bits = 0;
crypto/openssh/ssh-keygen.c
1154
type_bits_valid(type, NULL, &bits);
crypto/openssh/ssh-keygen.c
1155
if ((r = sshkey_generate(type, bits, &private)) != 0) {
crypto/openssh/ssh-keygen.c
3398
u_int32_t bits = 0;
crypto/openssh/ssh-keygen.c
3437
bits = (u_int32_t)strtonum(optarg, 1, UINT32_MAX,
crypto/openssh/ssh-keygen.c
3852
type_bits_valid(type, key_type_name, &bits);
crypto/openssh/ssh-keygen.c
3935
if ((r = sshkey_generate(type, bits, &private)) != 0)
crypto/openssh/ssh-pkcs11.c
1343
char *label, CK_ULONG bits, CK_BYTE keyid, u_int32_t *err)
crypto/openssh/ssh-pkcs11.c
1373
FILL_ATTR(tpub, npub, CKA_MODULUS_BITS, &bits, sizeof(bits));
crypto/openssh/ssh-pkcs11.c
1463
char *label, CK_ULONG bits, CK_BYTE keyid, u_int32_t *err)
crypto/openssh/ssh-pkcs11.c
1484
if (ec_curve_infos[i].size == bits)
crypto/openssh/ssh-pkcs11.c
1488
error_f("invalid key size %lu", bits);
crypto/openssh/ssh-pkcs11.c
1725
unsigned int type, unsigned int bits, unsigned char keyid, u_int32_t *err)
crypto/openssh/ssh-pkcs11.c
1760
bits, keyid, err)) == NULL) {
crypto/openssh/ssh-pkcs11.c
1767
bits, keyid, err)) == NULL) {
crypto/openssh/ssh-rsa.c
121
ssh_rsa_generate(struct sshkey *k, int bits)
crypto/openssh/ssh-rsa.c
128
if (bits < SSH_RSA_MINIMUM_MODULUS_SIZE ||
crypto/openssh/ssh-rsa.c
129
bits > SSHBUF_MAX_BIGNUM * 8)
crypto/openssh/ssh-rsa.c
140
if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) <= 0) {
crypto/openssh/sshkey-xmss.c
368
sshkey_xmss_generate_private_key(struct sshkey *k, int bits)
crypto/openssh/sshkey-xmss.c
373
if (bits == 10) {
crypto/openssh/sshkey-xmss.c
375
} else if (bits == 16) {
crypto/openssh/sshkey-xmss.c
377
} else if (bits == 20) {
crypto/openssh/sshkey.c
1505
sshkey_generate(int type, u_int bits, struct sshkey **keyp)
crypto/openssh/sshkey.c
1521
if ((ret = impl->funcs->generate(k, bits)) != 0) {
crypto/openssh/sshkey.c
622
sshkey_ecdsa_bits_to_nid(int bits)
crypto/openssh/sshkey.c
624
switch (bits) {
crypto/openssh/sshkey.h
221
int sshkey_generate(int type, u_int bits, struct sshkey **keyp);
crypto/openssh/xmss_wots.c
100
bits += 8;
crypto/openssh/xmss_wots.c
102
bits -= params->log_w;
crypto/openssh/xmss_wots.c
103
output[out] = (total >> bits) & (params->w - 1);
crypto/openssh/xmss_wots.c
93
int bits = 0;
crypto/openssh/xmss_wots.c
97
if (bits == 0) {
crypto/openssl/apps/include/apps.h
353
EVP_PKEY *app_keygen(EVP_PKEY_CTX *ctx, const char *alg, int bits, int verbose);
crypto/openssl/apps/lib/apps.c
3455
EVP_PKEY *app_keygen(EVP_PKEY_CTX *ctx, const char *alg, int bits, int verbose)
crypto/openssl/apps/lib/apps.c
3461
if (bits > 0)
crypto/openssl/apps/lib/apps.c
3462
BIO_printf(bio_err, " with %d bits\n", bits);
crypto/openssl/apps/lib/s_cb.c
1444
int (*old_cb)(const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid,
crypto/openssl/apps/lib/s_cb.c
1474
int op, int bits, int nid,
crypto/openssl/apps/lib/s_cb.c
1482
rv = sdb->old_cb(s, ctx, op, bits, nid, other, ex);
crypto/openssl/apps/lib/s_cb.c
1579
BIO_printf(sdb->out, ", security bits=%d", bits);
crypto/openssl/apps/prime.c
122
if (!bits) {
crypto/openssl/apps/prime.c
131
if (!BN_generate_prime_ex(bn, bits, safe, NULL, NULL, NULL)) {
crypto/openssl/apps/prime.c
70
int hex = 0, generate = 0, bits = 0, safe = 0, ret = 1;
crypto/openssl/apps/prime.c
93
bits = atoi(opt_arg());
crypto/openssl/apps/req.c
1670
size_t bits = keylen;
crypto/openssl/apps/req.c
1672
params[0] = OSSL_PARAM_construct_size_t(OSSL_PKEY_PARAM_BITS, &bits);
crypto/openssl/apps/speed.c
125
unsigned int bits, int sec);
crypto/openssl/apps/speed.c
1778
unsigned int bits;
crypto/openssl/apps/speed.c
2004
unsigned int bits;
crypto/openssl/apps/speed.c
2020
unsigned int bits;
crypto/openssl/apps/speed.c
3294
&& EVP_PKEY_CTX_set_rsa_keygen_bits(genctx, rsa_keys[testnum].bits) > 0
crypto/openssl/apps/speed.c
3329
rsa_keys[testnum].bits, seconds.rsa);
crypto/openssl/apps/speed.c
3337
count, rsa_keys[testnum].bits, d);
crypto/openssl/apps/speed.c
3361
rsa_keys[testnum].bits, seconds.rsa);
crypto/openssl/apps/speed.c
3368
count, rsa_keys[testnum].bits, d);
crypto/openssl/apps/speed.c
3391
rsa_keys[testnum].bits, seconds.rsa);
crypto/openssl/apps/speed.c
3399
count, rsa_keys[testnum].bits, d);
crypto/openssl/apps/speed.c
3424
rsa_keys[testnum].bits, seconds.rsa);
crypto/openssl/apps/speed.c
3432
count, rsa_keys[testnum].bits, d);
crypto/openssl/apps/speed.c
3553
ec_curves[testnum].bits, seconds.ecdsa);
crypto/openssl/apps/speed.c
3560
count, ec_curves[testnum].bits, d);
crypto/openssl/apps/speed.c
3584
ec_curves[testnum].bits, seconds.ecdsa);
crypto/openssl/apps/speed.c
3591
count, ec_curves[testnum].bits, d);
crypto/openssl/apps/speed.c
3671
ec_curves[testnum].bits, seconds.ecdh);
crypto/openssl/apps/speed.c
3677
ec_curves[testnum].bits, d);
crypto/openssl/apps/speed.c
3756
ed_curves[testnum].bits, seconds.eddsa);
crypto/openssl/apps/speed.c
3763
count, ed_curves[testnum].bits,
crypto/openssl/apps/speed.c
3783
ed_curves[testnum].bits, seconds.eddsa);
crypto/openssl/apps/speed.c
3790
count, ed_curves[testnum].bits,
crypto/openssl/apps/speed.c
3887
sm2_curves[testnum].bits, seconds.sm2);
crypto/openssl/apps/speed.c
3894
count, sm2_curves[testnum].bits,
crypto/openssl/apps/speed.c
3915
sm2_curves[testnum].bits, seconds.sm2);
crypto/openssl/apps/speed.c
3922
count, sm2_curves[testnum].bits,
crypto/openssl/apps/speed.c
4096
ffdh_params[testnum].bits, seconds.ffdh);
crypto/openssl/apps/speed.c
4102
ffdh_params[testnum].bits, d);
crypto/openssl/apps/speed.c
4128
unsigned int bits;
crypto/openssl/apps/speed.c
4140
&& sscanf(kem_name, "rsa%u%s", &bits, sfx) == 1)
crypto/openssl/apps/speed.c
4159
&bits);
crypto/openssl/apps/speed.c
4324
unsigned int bits;
crypto/openssl/apps/speed.c
4339
&& sscanf(sig_name, "rsa%u%s", &bits, sfx) == 1) {
crypto/openssl/apps/speed.c
4341
&bits);
crypto/openssl/apps/speed.c
4572
k, rsa_keys[k].bits, rsa_results[k][0], rsa_results[k][1],
crypto/openssl/apps/speed.c
4576
rsa_keys[k].bits, 1.0 / rsa_results[k][0],
crypto/openssl/apps/speed.c
4611
k, ec_curves[k].bits,
crypto/openssl/apps/speed.c
4615
ec_curves[k].bits, ec_curves[k].name,
crypto/openssl/apps/speed.c
4630
k, ec_curves[k].bits,
crypto/openssl/apps/speed.c
4635
ec_curves[k].bits, ec_curves[k].name,
crypto/openssl/apps/speed.c
4651
k, ed_curves[k].bits, ed_curves[k].name,
crypto/openssl/apps/speed.c
4655
ed_curves[k].bits, ed_curves[k].name,
crypto/openssl/apps/speed.c
4673
k, sm2_curves[k].bits, sm2_curves[k].name,
crypto/openssl/apps/speed.c
4677
sm2_curves[k].bits, sm2_curves[k].name,
crypto/openssl/apps/speed.c
4693
k, ffdh_params[k].bits,
crypto/openssl/apps/speed.c
4698
ffdh_params[k].bits,
crypto/openssl/apps/speed.c
4860
static void pkey_print_message(const char *str, const char *str2, unsigned int bits,
crypto/openssl/apps/speed.c
4866
bits, str, str2, tm);
crypto/openssl/apps/testdsa.h
1421
#define set_dsa_ptr(st, bits) \
crypto/openssl/apps/testdsa.h
1423
st.priv = dsa##bits##_priv; \
crypto/openssl/apps/testdsa.h
1424
st.pub = dsa##bits##_pub; \
crypto/openssl/apps/testdsa.h
1425
st.p = dsa##bits##_p; \
crypto/openssl/apps/testdsa.h
1426
st.g = dsa##bits##_g; \
crypto/openssl/apps/testdsa.h
1427
st.q = dsa##bits##_q; \
crypto/openssl/apps/testdsa.h
1428
st.priv_l = sizeof(dsa##bits##_priv); \
crypto/openssl/apps/testdsa.h
1429
st.pub_l = sizeof(dsa##bits##_pub); \
crypto/openssl/apps/testdsa.h
1430
st.p_l = sizeof(dsa##bits##_p); \
crypto/openssl/apps/testdsa.h
1431
st.g_l = sizeof(dsa##bits##_g); \
crypto/openssl/apps/testdsa.h
1432
st.q_l = sizeof(dsa##bits##_q); \
crypto/openssl/apps/ts.c
44
static ASN1_INTEGER *create_nonce(int bits);
crypto/openssl/apps/ts.c
578
static ASN1_INTEGER *create_nonce(int bits)
crypto/openssl/apps/ts.c
582
int len = (bits - 1) / 8 + 1;
crypto/openssl/crypto/aes/aes_core.c
3045
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_core.c
3055
if (bits != 128 && bits != 192 && bits != 256)
crypto/openssl/crypto/aes/aes_core.c
3060
if (bits == 128)
crypto/openssl/crypto/aes/aes_core.c
3062
else if (bits == 192)
crypto/openssl/crypto/aes/aes_core.c
3071
if (bits == 128) {
crypto/openssl/crypto/aes/aes_core.c
3086
if (bits == 192) {
crypto/openssl/crypto/aes/aes_core.c
3103
if (bits == 256) {
crypto/openssl/crypto/aes/aes_core.c
3128
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_core.c
3137
status = AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_core.c
3485
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_core.c
3494
if (bits != 128 && bits != 192 && bits != 256)
crypto/openssl/crypto/aes/aes_core.c
3499
if (bits == 128)
crypto/openssl/crypto/aes/aes_core.c
3501
else if (bits == 192)
crypto/openssl/crypto/aes/aes_core.c
3510
if (bits == 128) {
crypto/openssl/crypto/aes/aes_core.c
3525
if (bits == 192) {
crypto/openssl/crypto/aes/aes_core.c
3542
if (bits == 256) {
crypto/openssl/crypto/aes/aes_core.c
3567
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_core.c
3576
status = AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_core.c
631
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_core.c
638
if (bits != 128 && bits != 192 && bits != 256)
crypto/openssl/crypto/aes/aes_core.c
643
if (bits == 128)
crypto/openssl/crypto/aes/aes_core.c
645
else if (bits == 192)
crypto/openssl/crypto/aes/aes_core.c
650
KeyExpansion(userKey, rk, key->rounds, bits / 32);
crypto/openssl/crypto/aes/aes_core.c
657
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_core.c
660
return AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_x86core.c
479
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_x86core.c
489
if (bits != 128 && bits != 192 && bits != 256)
crypto/openssl/crypto/aes/aes_x86core.c
494
if (bits == 128)
crypto/openssl/crypto/aes/aes_x86core.c
496
else if (bits == 192)
crypto/openssl/crypto/aes/aes_x86core.c
505
if (bits == 128) {
crypto/openssl/crypto/aes/aes_x86core.c
520
if (bits == 192) {
crypto/openssl/crypto/aes/aes_x86core.c
537
if (bits == 256) {
crypto/openssl/crypto/aes/aes_x86core.c
562
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aes/aes_x86core.c
571
status = AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aria/aria.c
1028
int ossl_aria_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aria/aria.c
1037
switch (bits) {
crypto/openssl/crypto/aria/aria.c
1104
int ossl_aria_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aria/aria.c
1108
const int r = ossl_aria_set_encrypt_key(userKey, bits, &ek);
crypto/openssl/crypto/aria/aria.c
471
int ossl_aria_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aria/aria.c
479
int Nr = (bits + 256) / 32;
crypto/openssl/crypto/aria/aria.c
484
if (bits != 128 && bits != 192 && bits != 256) {
crypto/openssl/crypto/aria/aria.c
490
ck = &Key_RC[(bits - 128) / 64][0];
crypto/openssl/crypto/aria/aria.c
504
if (bits > 128) {
crypto/openssl/crypto/aria/aria.c
507
if (bits > 192) {
crypto/openssl/crypto/aria/aria.c
584
if (bits > 128) {
crypto/openssl/crypto/aria/aria.c
590
if (bits > 192) {
crypto/openssl/crypto/aria/aria.c
601
int ossl_aria_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/aria/aria.c
610
const int r = ossl_aria_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aria/aria.c
855
const unsigned int bytes = n / 8, bits = n % 8;
crypto/openssl/crypto/aria/aria.c
862
o->c[i] = ((t.c[i] >> bits) | (t.c[i ? i - 1 : ARIA_BLOCK_SIZE - 1] << (8 - bits))) ^ xor->c[i];
crypto/openssl/crypto/asn1/a_bitstr.c
23
int ret, j, bits, len;
crypto/openssl/crypto/asn1/a_bitstr.c
33
bits = (int)a->flags & 0x07;
crypto/openssl/crypto/asn1/a_bitstr.c
41
bits = 0;
crypto/openssl/crypto/asn1/a_bitstr.c
45
bits = 0;
crypto/openssl/crypto/asn1/a_bitstr.c
47
bits = 1;
crypto/openssl/crypto/asn1/a_bitstr.c
49
bits = 2;
crypto/openssl/crypto/asn1/a_bitstr.c
51
bits = 3;
crypto/openssl/crypto/asn1/a_bitstr.c
53
bits = 4;
crypto/openssl/crypto/asn1/a_bitstr.c
55
bits = 5;
crypto/openssl/crypto/asn1/a_bitstr.c
57
bits = 6;
crypto/openssl/crypto/asn1/a_bitstr.c
59
bits = 7;
crypto/openssl/crypto/asn1/a_bitstr.c
61
bits = 0; /* should not happen */
crypto/openssl/crypto/asn1/a_bitstr.c
65
bits = 0;
crypto/openssl/crypto/asn1/a_bitstr.c
73
*(p++) = (unsigned char)bits;
crypto/openssl/crypto/asn1/a_bitstr.c
78
p[-1] &= (0xff << bits);
crypto/openssl/crypto/bn/bn_depr.c
22
BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,
crypto/openssl/crypto/bn/bn_depr.c
36
if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb))
crypto/openssl/crypto/bn/bn_exp.c
1007
while (bits > 0) {
crypto/openssl/crypto/bn/bn_exp.c
1014
bn_get_bits5(p->d, bits -= 5));
crypto/openssl/crypto/bn/bn_exp.c
1017
while (bits > 0) {
crypto/openssl/crypto/bn/bn_exp.c
1019
bn_get_bits5(p->d, bits -= 5));
crypto/openssl/crypto/bn/bn_exp.c
1072
window0 = (bits - 1) % window + 1;
crypto/openssl/crypto/bn/bn_exp.c
1074
bits -= window0;
crypto/openssl/crypto/bn/bn_exp.c
1075
wvalue = bn_get_bits(p, bits) & wmask;
crypto/openssl/crypto/bn/bn_exp.c
1085
while (bits > 0) {
crypto/openssl/crypto/bn/bn_exp.c
1102
bits -= window;
crypto/openssl/crypto/bn/bn_exp.c
1103
wvalue = bn_get_bits(p, bits) & wmask;
crypto/openssl/crypto/bn/bn_exp.c
1162
int b, bits, ret = 0;
crypto/openssl/crypto/bn/bn_exp.c
1200
bits = BN_num_bits(p);
crypto/openssl/crypto/bn/bn_exp.c
1201
if (bits == 0) {
crypto/openssl/crypto/bn/bn_exp.c
1238
for (b = bits - 2; b >= 0; b--) {
crypto/openssl/crypto/bn/bn_exp.c
1308
int i, j, bits, ret = 0, wstart, wend, window;
crypto/openssl/crypto/bn/bn_exp.c
1327
bits = BN_num_bits(p);
crypto/openssl/crypto/bn/bn_exp.c
1328
if (bits == 0) {
crypto/openssl/crypto/bn/bn_exp.c
1353
window = BN_window_bits_for_exponent_size(bits);
crypto/openssl/crypto/bn/bn_exp.c
1367
wstart = bits - 1; /* The top bit of the window */
crypto/openssl/crypto/bn/bn_exp.c
172
int i, j, bits, ret = 0, wstart, wend, window;
crypto/openssl/crypto/bn/bn_exp.c
187
bits = BN_num_bits(p);
crypto/openssl/crypto/bn/bn_exp.c
188
if (bits == 0) {
crypto/openssl/crypto/bn/bn_exp.c
227
window = BN_window_bits_for_exponent_size(bits);
crypto/openssl/crypto/bn/bn_exp.c
241
wstart = bits - 1; /* The top bit of the window */
crypto/openssl/crypto/bn/bn_exp.c
314
int i, j, bits, ret = 0, wstart, wend, window;
crypto/openssl/crypto/bn/bn_exp.c
338
bits = BN_num_bits(p);
crypto/openssl/crypto/bn/bn_exp.c
339
if (bits == 0) {
crypto/openssl/crypto/bn/bn_exp.c
379
window = BN_window_bits_for_exponent_size(bits);
crypto/openssl/crypto/bn/bn_exp.c
393
wstart = bits - 1; /* The top bit of the window */
crypto/openssl/crypto/bn/bn_exp.c
51
int i, bits, ret = 0;
crypto/openssl/crypto/bn/bn_exp.c
607
int i, bits, ret = 0, window, wvalue, wmask, window0;
crypto/openssl/crypto/bn/bn_exp.c
636
bits = p->top * BN_BITS2;
crypto/openssl/crypto/bn/bn_exp.c
637
if (bits == 0) {
crypto/openssl/crypto/bn/bn_exp.c
69
bits = BN_num_bits(p);
crypto/openssl/crypto/bn/bn_exp.c
702
window = BN_window_bits_for_ctime_exponent_size(bits);
crypto/openssl/crypto/bn/bn_exp.c
773
int power, int bits);
crypto/openssl/crypto/bn/bn_exp.c
776
int power, int bits);
crypto/openssl/crypto/bn/bn_exp.c
779
int power, int bits);
crypto/openssl/crypto/bn/bn_exp.c
782
int power, int bits);
crypto/openssl/crypto/bn/bn_exp.c
785
int power, int bits);
crypto/openssl/crypto/bn/bn_exp.c
79
for (i = 1; i < bits; i++) {
crypto/openssl/crypto/bn/bn_exp.c
864
window0 = (bits - 1) % 5 + 1;
crypto/openssl/crypto/bn/bn_exp.c
866
bits -= window0;
crypto/openssl/crypto/bn/bn_exp.c
867
wvalue = bn_get_bits(p, bits) & wmask;
crypto/openssl/crypto/bn/bn_exp.c
874
while (bits > 0) {
crypto/openssl/crypto/bn/bn_exp.c
875
if (bits < stride)
crypto/openssl/crypto/bn/bn_exp.c
876
stride = bits;
crypto/openssl/crypto/bn/bn_exp.c
877
bits -= stride;
crypto/openssl/crypto/bn/bn_exp.c
878
wvalue = bn_get_bits(p, bits);
crypto/openssl/crypto/bn/bn_exp.c
886
bits += stride - 5;
crypto/openssl/crypto/bn/bn_exp.c
996
window0 = (bits - 1) % 5 + 1;
crypto/openssl/crypto/bn/bn_exp.c
998
bits -= window0;
crypto/openssl/crypto/bn/bn_exp.c
999
wvalue = bn_get_bits(p, bits) & wmask;
crypto/openssl/crypto/bn/bn_exp2.c
133
for (b = bits - 1; b >= 0; b--) {
crypto/openssl/crypto/bn/bn_exp2.c
20
int i, j, bits, b, bits1, bits2, ret = 0, wpos1, wpos2, window1, window2, wvalue1, wvalue2;
crypto/openssl/crypto/bn/bn_exp2.c
45
bits = (bits1 > bits2) ? bits1 : bits2;
crypto/openssl/crypto/bn/bn_lib.c
1001
int secbits, bits;
crypto/openssl/crypto/bn/bn_lib.c
1016
bits = N / 2;
crypto/openssl/crypto/bn/bn_lib.c
1017
if (bits < 80)
crypto/openssl/crypto/bn/bn_lib.c
1019
return bits >= secbits ? secbits : bits;
crypto/openssl/crypto/bn/bn_lib.c
104
int bits = (l != 0);
crypto/openssl/crypto/bn/bn_lib.c
110
bits += 32 & mask;
crypto/openssl/crypto/bn/bn_lib.c
117
bits += 16 & mask;
crypto/openssl/crypto/bn/bn_lib.c
123
bits += 8 & mask;
crypto/openssl/crypto/bn/bn_lib.c
129
bits += 4 & mask;
crypto/openssl/crypto/bn/bn_lib.c
135
bits += 2 & mask;
crypto/openssl/crypto/bn/bn_lib.c
141
bits += 1 & mask;
crypto/openssl/crypto/bn/bn_lib.c
143
return bits;
crypto/openssl/crypto/bn/bn_local.h
210
#define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits + BN_BITS2 - 1)) / BN_BITS2)
crypto/openssl/crypto/bn/bn_local.h
225
#define bn_check_size(bn, bits)
crypto/openssl/crypto/bn/bn_local.h
679
static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
crypto/openssl/crypto/bn/bn_local.h
681
if (bits > (INT_MAX - BN_BITS2 + 1))
crypto/openssl/crypto/bn/bn_local.h
684
if (((bits + BN_BITS2 - 1) / BN_BITS2) <= (a)->dmax)
crypto/openssl/crypto/bn/bn_local.h
687
return bn_expand2((a), (bits + BN_BITS2 - 1) / BN_BITS2);
crypto/openssl/crypto/bn/bn_mpi.c
16
int bits;
crypto/openssl/crypto/bn/bn_mpi.c
21
bits = BN_num_bits(a);
crypto/openssl/crypto/bn/bn_mpi.c
22
num = (bits + 7) / 8;
crypto/openssl/crypto/bn/bn_mpi.c
23
if (bits > 0) {
crypto/openssl/crypto/bn/bn_mpi.c
24
ext = ((bits & 0x07) == 0);
crypto/openssl/crypto/bn/bn_prime.c
123
int BN_generate_prime_ex2(BIGNUM *ret, int bits, int safe,
crypto/openssl/crypto/bn/bn_prime.c
131
int checks = bn_mr_min_checks(bits);
crypto/openssl/crypto/bn/bn_prime.c
133
if (bits < 2) {
crypto/openssl/crypto/bn/bn_prime.c
137
} else if (add == NULL && safe && bits < 6 && bits != 3) {
crypto/openssl/crypto/bn/bn_prime.c
158
if (!probable_prime(ret, bits, safe, mods, ctx))
crypto/openssl/crypto/bn/bn_prime.c
161
if (!probable_prime_dh(ret, bits, safe, mods, add, rem, ctx))
crypto/openssl/crypto/bn/bn_prime.c
211
int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
crypto/openssl/crypto/bn/bn_prime.c
22
static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods,
crypto/openssl/crypto/bn/bn_prime.c
220
retval = BN_generate_prime_ex2(ret, bits, safe, add, rem, cb, ctx);
crypto/openssl/crypto/bn/bn_prime.c
24
static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods,
crypto/openssl/crypto/bn/bn_prime.c
487
static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods,
crypto/openssl/crypto/bn/bn_prime.c
492
int trial_divisions = calc_trial_divisions(bits);
crypto/openssl/crypto/bn/bn_prime.c
496
if (!BN_priv_rand_ex(rnd, bits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ODD, 0,
crypto/openssl/crypto/bn/bn_prime.c
518
if (bits <= 31 && delta <= 0x7fffffff
crypto/openssl/crypto/bn/bn_prime.c
531
if (BN_num_bits(rnd) != bits)
crypto/openssl/crypto/bn/bn_prime.c
545
static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods,
crypto/openssl/crypto/bn/bn_prime.c
552
int trial_divisions = calc_trial_divisions(bits);
crypto/openssl/crypto/bn/bn_prime.c
563
if (!BN_rand_ex(rnd, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD, 0, ctx))
crypto/openssl/crypto/bn/bn_prime.c
580
if (BN_num_bits(rnd) < bits
crypto/openssl/crypto/bn/bn_prime.c
597
if (bits <= 31 && delta <= 0x7fffffff
crypto/openssl/crypto/bn/bn_prime.c
74
static int calc_trial_divisions(int bits)
crypto/openssl/crypto/bn/bn_prime.c
76
if (bits <= 512)
crypto/openssl/crypto/bn/bn_prime.c
78
else if (bits <= 1024)
crypto/openssl/crypto/bn/bn_prime.c
80
else if (bits <= 2048)
crypto/openssl/crypto/bn/bn_prime.c
82
else if (bits <= 4096)
crypto/openssl/crypto/bn/bn_prime.c
94
static int bn_mr_min_checks(int bits)
crypto/openssl/crypto/bn/bn_prime.c
96
if (bits > 2048)
crypto/openssl/crypto/bn/bn_rand.c
102
int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
crypto/openssl/crypto/bn/bn_rand.c
105
return bnrand(NORMAL, rnd, bits, top, bottom, strength, ctx);
crypto/openssl/crypto/bn/bn_rand.c
108
int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
crypto/openssl/crypto/bn/bn_rand.c
110
return bnrand(NORMAL, rnd, bits, top, bottom, 0, NULL);
crypto/openssl/crypto/bn/bn_rand.c
113
int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
crypto/openssl/crypto/bn/bn_rand.c
115
return bnrand(TESTING, rnd, bits, top, bottom, 0, NULL);
crypto/openssl/crypto/bn/bn_rand.c
119
int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
crypto/openssl/crypto/bn/bn_rand.c
122
return bnrand(PRIVATE, rnd, bits, top, bottom, strength, ctx);
crypto/openssl/crypto/bn/bn_rand.c
126
int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom)
crypto/openssl/crypto/bn/bn_rand.c
128
return bnrand(PRIVATE, rnd, bits, top, bottom, 0, NULL);
crypto/openssl/crypto/bn/bn_rand.c
229
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
crypto/openssl/crypto/bn/bn_rand.c
231
return BN_rand(rnd, bits, top, bottom);
crypto/openssl/crypto/bn/bn_rand.c
25
static int bnrand(BNRAND_FLAG flag, BIGNUM *rnd, int bits, int top, int bottom,
crypto/openssl/crypto/bn/bn_rand.c
32
if (bits == 0) {
crypto/openssl/crypto/bn/bn_rand.c
38
if (bits < 0 || (bits == 1 && top > 0))
crypto/openssl/crypto/bn/bn_rand.c
41
bytes = (bits + 7) / 8;
crypto/openssl/crypto/bn/bn_rand.c
42
bit = (bits - 1) % 8;
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
281
int bits = nlen >> 1;
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
310
if (bits < BN_num_bits(&ossl_bn_inv_sqrt_2))
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
313
bits - BN_num_bits(&ossl_bn_inv_sqrt_2))
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
314
|| !BN_lshift(range, BN_value_one(), bits)
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
351
imax = 20 * bits; /* max = 20/2 * nbits */
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
368
if (BN_num_bits(Y) > bits) {
crypto/openssl/crypto/camellia/cmll_misc.c
20
int Camellia_set_key(const unsigned char *userKey, const int bits,
crypto/openssl/crypto/camellia/cmll_misc.c
25
if (bits != 128 && bits != 192 && bits != 256)
crypto/openssl/crypto/camellia/cmll_misc.c
27
key->grand_rounds = Camellia_Ekeygen(bits, userKey, key->u.rd_key);
crypto/openssl/crypto/dsa/dsa_depr.c
31
DSA *DSA_generate_parameters(int bits,
crypto/openssl/crypto/dsa/dsa_depr.c
48
if (DSA_generate_parameters_ex(ret, bits, seed_in, seed_len,
crypto/openssl/crypto/dsa/dsa_gen.c
47
int DSA_generate_parameters_ex(DSA *dsa, int bits,
crypto/openssl/crypto/dsa/dsa_gen.c
53
return dsa->meth->dsa_paramgen(dsa, bits, seed_in, seed_len,
crypto/openssl/crypto/dsa/dsa_gen.c
61
if (bits < 2048 && seed_len <= 20) {
crypto/openssl/crypto/dsa/dsa_gen.c
63
bits, 160, cb))
crypto/openssl/crypto/dsa/dsa_gen.c
67
bits, 0, cb))
crypto/openssl/crypto/dsa/dsa_local.h
64
int (*dsa_paramgen)(DSA *dsa, int bits,
crypto/openssl/crypto/ec/ec_mult.c
524
size_t bits;
crypto/openssl/crypto/ec/ec_mult.c
526
bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar);
crypto/openssl/crypto/ec/ec_mult.c
527
wsize[i] = EC_window_bits_for_scalar_size(bits);
crypto/openssl/crypto/ec/ec_mult.c
819
size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num;
crypto/openssl/crypto/ec/ec_mult.c
857
bits = BN_num_bits(order);
crypto/openssl/crypto/ec/ec_mult.c
866
if (EC_window_bits_for_scalar_size(bits) > w) {
crypto/openssl/crypto/ec/ec_mult.c
868
w = EC_window_bits_for_scalar_size(bits);
crypto/openssl/crypto/ec/ec_mult.c
871
numblocks = (bits + blocksize - 1) / blocksize; /* max. number of blocks
crypto/openssl/crypto/ec/ecp_nistp224.c
1135
u64 bits;
crypto/openssl/crypto/ec/ecp_nistp224.c
1156
bits = get_bit(g_scalar, i + 196) << 3;
crypto/openssl/crypto/ec/ecp_nistp224.c
1157
bits |= get_bit(g_scalar, i + 140) << 2;
crypto/openssl/crypto/ec/ecp_nistp224.c
1158
bits |= get_bit(g_scalar, i + 84) << 1;
crypto/openssl/crypto/ec/ecp_nistp224.c
1159
bits |= get_bit(g_scalar, i + 28);
crypto/openssl/crypto/ec/ecp_nistp224.c
1161
select_point(bits, 16, g_pre_comp[1], tmp);
crypto/openssl/crypto/ec/ecp_nistp224.c
1173
bits = get_bit(g_scalar, i + 168) << 3;
crypto/openssl/crypto/ec/ecp_nistp224.c
1174
bits |= get_bit(g_scalar, i + 112) << 2;
crypto/openssl/crypto/ec/ecp_nistp224.c
1175
bits |= get_bit(g_scalar, i + 56) << 1;
crypto/openssl/crypto/ec/ecp_nistp224.c
1176
bits |= get_bit(g_scalar, i);
crypto/openssl/crypto/ec/ecp_nistp224.c
1178
select_point(bits, 16, g_pre_comp[0], tmp);
crypto/openssl/crypto/ec/ecp_nistp224.c
1188
bits = get_bit(scalars[num], i + 4) << 5;
crypto/openssl/crypto/ec/ecp_nistp224.c
1189
bits |= get_bit(scalars[num], i + 3) << 4;
crypto/openssl/crypto/ec/ecp_nistp224.c
1190
bits |= get_bit(scalars[num], i + 2) << 3;
crypto/openssl/crypto/ec/ecp_nistp224.c
1191
bits |= get_bit(scalars[num], i + 1) << 2;
crypto/openssl/crypto/ec/ecp_nistp224.c
1192
bits |= get_bit(scalars[num], i) << 1;
crypto/openssl/crypto/ec/ecp_nistp224.c
1193
bits |= get_bit(scalars[num], i - 1);
crypto/openssl/crypto/ec/ecp_nistp224.c
1194
ossl_ec_GFp_nistp_recode_scalar_bits(&sign, &digit, bits);
crypto/openssl/crypto/ec/ecp_nistp256.c
1677
u64 bits;
crypto/openssl/crypto/ec/ecp_nistp256.c
1698
bits = get_bit(g_scalar, i + 224) << 3;
crypto/openssl/crypto/ec/ecp_nistp256.c
1699
bits |= get_bit(g_scalar, i + 160) << 2;
crypto/openssl/crypto/ec/ecp_nistp256.c
1700
bits |= get_bit(g_scalar, i + 96) << 1;
crypto/openssl/crypto/ec/ecp_nistp256.c
1701
bits |= get_bit(g_scalar, i + 32);
crypto/openssl/crypto/ec/ecp_nistp256.c
1703
select_point(bits, 16, g_pre_comp[1], tmp);
crypto/openssl/crypto/ec/ecp_nistp256.c
1717
bits = get_bit(g_scalar, i + 192) << 3;
crypto/openssl/crypto/ec/ecp_nistp256.c
1718
bits |= get_bit(g_scalar, i + 128) << 2;
crypto/openssl/crypto/ec/ecp_nistp256.c
1719
bits |= get_bit(g_scalar, i + 64) << 1;
crypto/openssl/crypto/ec/ecp_nistp256.c
1720
bits |= get_bit(g_scalar, i);
crypto/openssl/crypto/ec/ecp_nistp256.c
1722
select_point(bits, 16, g_pre_comp[0], tmp);
crypto/openssl/crypto/ec/ecp_nistp256.c
1732
bits = get_bit(scalars[num], i + 4) << 5;
crypto/openssl/crypto/ec/ecp_nistp256.c
1733
bits |= get_bit(scalars[num], i + 3) << 4;
crypto/openssl/crypto/ec/ecp_nistp256.c
1734
bits |= get_bit(scalars[num], i + 2) << 3;
crypto/openssl/crypto/ec/ecp_nistp256.c
1735
bits |= get_bit(scalars[num], i + 1) << 2;
crypto/openssl/crypto/ec/ecp_nistp256.c
1736
bits |= get_bit(scalars[num], i) << 1;
crypto/openssl/crypto/ec/ecp_nistp256.c
1737
bits |= get_bit(scalars[num], i - 1);
crypto/openssl/crypto/ec/ecp_nistp256.c
1738
ossl_ec_GFp_nistp_recode_scalar_bits(&sign, &digit, bits);
crypto/openssl/crypto/ec/ecp_nistp384.c
1414
limb bits;
crypto/openssl/crypto/ec/ecp_nistp384.c
1434
bits = get_bit(g_scalar, i + 285) << 3;
crypto/openssl/crypto/ec/ecp_nistp384.c
1436
bits |= get_bit(g_scalar, i + 190) << 2;
crypto/openssl/crypto/ec/ecp_nistp384.c
1437
bits |= get_bit(g_scalar, i + 95) << 1;
crypto/openssl/crypto/ec/ecp_nistp384.c
1438
bits |= get_bit(g_scalar, i);
crypto/openssl/crypto/ec/ecp_nistp384.c
1441
select_point(bits, 16, g_pre_comp, tmp);
crypto/openssl/crypto/ec/ecp_nistp384.c
1457
bits = get_bit(scalars[num], i + 4) << 5;
crypto/openssl/crypto/ec/ecp_nistp384.c
1458
bits |= get_bit(scalars[num], i + 3) << 4;
crypto/openssl/crypto/ec/ecp_nistp384.c
1459
bits |= get_bit(scalars[num], i + 2) << 3;
crypto/openssl/crypto/ec/ecp_nistp384.c
1460
bits |= get_bit(scalars[num], i + 1) << 2;
crypto/openssl/crypto/ec/ecp_nistp384.c
1461
bits |= get_bit(scalars[num], i) << 1;
crypto/openssl/crypto/ec/ecp_nistp384.c
1462
bits |= get_bit(scalars[num], i - 1);
crypto/openssl/crypto/ec/ecp_nistp384.c
1463
ossl_ec_GFp_nistp_recode_scalar_bits(&sign, &digit, bits);
crypto/openssl/crypto/ec/ecp_nistp521.c
1507
limb bits;
crypto/openssl/crypto/ec/ecp_nistp521.c
1527
bits = get_bit(g_scalar, i + 390) << 3;
crypto/openssl/crypto/ec/ecp_nistp521.c
1529
bits |= get_bit(g_scalar, i + 260) << 2;
crypto/openssl/crypto/ec/ecp_nistp521.c
1530
bits |= get_bit(g_scalar, i + 130) << 1;
crypto/openssl/crypto/ec/ecp_nistp521.c
1531
bits |= get_bit(g_scalar, i);
crypto/openssl/crypto/ec/ecp_nistp521.c
1534
select_point(bits, 16, g_pre_comp, tmp);
crypto/openssl/crypto/ec/ecp_nistp521.c
1549
bits = get_bit(scalars[num], i + 4) << 5;
crypto/openssl/crypto/ec/ecp_nistp521.c
1550
bits |= get_bit(scalars[num], i + 3) << 4;
crypto/openssl/crypto/ec/ecp_nistp521.c
1551
bits |= get_bit(scalars[num], i + 2) << 3;
crypto/openssl/crypto/ec/ecp_nistp521.c
1552
bits |= get_bit(scalars[num], i + 1) << 2;
crypto/openssl/crypto/ec/ecp_nistp521.c
1553
bits |= get_bit(scalars[num], i) << 1;
crypto/openssl/crypto/ec/ecp_nistp521.c
1554
bits |= get_bit(scalars[num], i - 1);
crypto/openssl/crypto/ec/ecp_nistp521.c
1555
ossl_ec_GFp_nistp_recode_scalar_bits(&sign, &digit, bits);
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
305
#define EC_GFP_S390X_NISTP_METHOD(bits) \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
307
static int ec_GFp_s390x_nistp##bits##_mul(const EC_GROUP *group, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
317
S390X_SCALAR_MULTIPLY_P##bits, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
318
S390X_SIZE_P##bits); \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
321
static ECDSA_SIG *ecdsa_s390x_nistp##bits##_sign_sig(const unsigned char *dgst, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
328
S390X_ECDSA_SIGN_P##bits, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
329
S390X_SIZE_P##bits); \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
332
static int ecdsa_s390x_nistp##bits##_verify_sig(const unsigned char *dgst, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
338
S390X_ECDSA_VERIFY_P##bits, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
339
S390X_SIZE_P##bits); \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
342
const EC_METHOD *EC_GFp_s390x_nistp##bits##_method(void) \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
344
static const EC_METHOD EC_GFp_s390x_nistp##bits##_meth = { \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
374
ec_GFp_s390x_nistp##bits##_mul, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
394
ecdsa_s390x_nistp##bits##_sign_sig, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
395
ecdsa_s390x_nistp##bits##_verify_sig, \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
405
& S390X_CAPBIT(S390X_SCALAR_MULTIPLY_P##bits)) \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
407
& S390X_CAPBIT(S390X_ECDSA_VERIFY_P##bits)) \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
409
& S390X_CAPBIT(S390X_ECDSA_SIGN_P##bits))) \
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
410
ret = &EC_GFp_s390x_nistp##bits##_meth; \
crypto/openssl/crypto/evp/dh_ctrl.c
94
size_t bits = pbits;
crypto/openssl/crypto/evp/dh_ctrl.c
99
*p++ = OSSL_PARAM_construct_size_t(OSSL_PKEY_PARAM_FFC_PBITS, &bits);
crypto/openssl/crypto/evp/dsa_ctrl.c
80
size_t bits = nbits;
crypto/openssl/crypto/evp/dsa_ctrl.c
85
*p++ = OSSL_PARAM_construct_size_t(OSSL_PKEY_PARAM_FFC_PBITS, &bits);
crypto/openssl/crypto/evp/e_aes.c
278
const int bits = bytes * 8;
crypto/openssl/crypto/evp/e_aes.c
298
aesni_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
302
aesni_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
307
aesni_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
3237
const int bits = bytes * 8;
crypto/openssl/crypto/evp/e_aes.c
3274
HWAES_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3280
HWAES_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3287
HWAES_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
3302
vpaes_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3305
vpaes_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3309
vpaes_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
3319
AES_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3322
AES_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3326
AES_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
480
int ret, mode, bits;
crypto/openssl/crypto/evp/e_aes.c
484
bits = EVP_CIPHER_CTX_get_key_length(ctx) * 8;
crypto/openssl/crypto/evp/e_aes.c
485
if (bits <= 0) {
crypto/openssl/crypto/evp/e_aes.c
492
aes_t4_set_decrypt_key(key, bits, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
494
switch (bits) {
crypto/openssl/crypto/evp/e_aes.c
509
aes_t4_set_encrypt_key(key, bits, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
511
switch (bits) {
crypto/openssl/crypto/evp/e_aes.c
585
const int bits = EVP_CIPHER_CTX_get_key_length(ctx) * 8;
crypto/openssl/crypto/evp/e_aes.c
587
if (bits <= 0) {
crypto/openssl/crypto/evp/e_aes.c
591
aes_t4_set_encrypt_key(key, bits, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
594
switch (bits) {
crypto/openssl/crypto/evp/e_aes.c
645
const int bits = bytes * 8;
crypto/openssl/crypto/evp/e_aes.c
666
aes_t4_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
668
switch (bits) {
crypto/openssl/crypto/evp/e_aes.c
679
aes_t4_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
681
switch (bits) {
crypto/openssl/crypto/evp/e_aes.c
693
aes_t4_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
720
const int bits = EVP_CIPHER_CTX_get_key_length(ctx) * 8;
crypto/openssl/crypto/evp/e_aes.c
722
if (bits <= 0) {
crypto/openssl/crypto/evp/e_aes.c
726
aes_t4_set_encrypt_key(key, bits, &cctx->ks.ks);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
47
int aesni_set_encrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
49
int aesni_set_decrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
47
int aesni_set_encrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
49
int aesni_set_decrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/crypto/evp/e_camellia.c
54
int ret, mode, bits;
crypto/openssl/crypto/evp/e_camellia.c
58
bits = EVP_CIPHER_CTX_get_key_length(ctx) * 8;
crypto/openssl/crypto/evp/e_camellia.c
60
cmll_t4_set_key(key, bits, &dat->ks);
crypto/openssl/crypto/evp/e_camellia.c
66
switch (bits) {
crypto/openssl/crypto/evp/e_camellia.c
80
switch (bits) {
crypto/openssl/crypto/evp/evp_lib.c
1218
size_t bits;
crypto/openssl/crypto/evp/evp_lib.c
1226
bits = va_arg(args, size_t);
crypto/openssl/crypto/evp/evp_lib.c
1227
params[0] = OSSL_PARAM_construct_size_t(OSSL_PKEY_PARAM_RSA_BITS, &bits);
crypto/openssl/crypto/evp/keymgmt_lib.c
297
int bits = 0;
crypto/openssl/crypto/evp/keymgmt_lib.c
302
params[0] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_BITS, &bits);
crypto/openssl/crypto/evp/keymgmt_lib.c
309
pk->cache.bits = bits;
crypto/openssl/crypto/evp/p_lib.c
66
size = pkey->cache.bits;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
19
#define POLY_COEFF_NUM_BYTES(bits) ((bits) * (ML_DSA_NUM_POLY_COEFFICIENTS / 8))
crypto/openssl/crypto/ml_kem/ml_kem.c
1010
static void scalar_decode(scalar *out, const uint8_t *in, int bits)
crypto/openssl/crypto/ml_kem/ml_kem.c
1014
int accum_bits = 0, todo = bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
1015
uint16_t bitmask = (((uint16_t)1) << bits) - 1, mask = bitmask;
crypto/openssl/crypto/ml_kem/ml_kem.c
1023
if (todo == bits && accum_bits >= bits) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1026
accum >>= bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
1027
accum_bits -= bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
1030
*curr++ = element | ((((uint16_t)accum) & mask) << (bits - todo));
crypto/openssl/crypto/ml_kem/ml_kem.c
1034
todo = bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
107
#define DECLARE_ML_KEM_VARIANT_KEYDATA(bits) \
crypto/openssl/crypto/ml_kem/ml_kem.c
108
DECLARE_ML_KEM_KEYDATA(pubkey_##bits, ML_KEM_##bits##_RANK, ;); \
crypto/openssl/crypto/ml_kem/ml_kem.c
109
DECLARE_ML_KEM_KEYDATA(prvkey_##bits, ML_KEM_##bits##_RANK, ; scalar sbuf[ML_KEM_##bits##_RANK]; uint8_t zbuf[2 * ML_KEM_RANDOM_BYTES];)
crypto/openssl/crypto/ml_kem/ml_kem.c
1130
static __owur uint16_t compress(uint16_t x, int bits)
crypto/openssl/crypto/ml_kem/ml_kem.c
1132
uint32_t shifted = (uint32_t)x << bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
1145
return quotient & ((1 << bits) - 1);
crypto/openssl/crypto/ml_kem/ml_kem.c
1155
static __owur uint16_t decompress(uint16_t x, int bits)
crypto/openssl/crypto/ml_kem/ml_kem.c
1158
uint32_t power = 1 << bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
1162
uint32_t lower = product >> bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
1170
return lower + (remainder >> (bits - 1));
crypto/openssl/crypto/ml_kem/ml_kem.c
1177
static void scalar_compress(scalar *s, int bits)
crypto/openssl/crypto/ml_kem/ml_kem.c
118
static void scalar_encode(uint8_t *out, const scalar *s, int bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1182
s->c[i] = compress(s->c[i], bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1189
static void scalar_decompress(scalar *s, int bits)
crypto/openssl/crypto/ml_kem/ml_kem.c
1194
s->c[i] = decompress(s->c[i], bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1210
static void vector_encode(uint8_t *out, const scalar *a, int bits, int rank)
crypto/openssl/crypto/ml_kem/ml_kem.c
1212
int stride = bits * DEGREE / 8;
crypto/openssl/crypto/ml_kem/ml_kem.c
1215
scalar_encode(out, a++, bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1228
vector_decode_decompress_ntt(scalar *out, const uint8_t *in, int bits, int rank)
crypto/openssl/crypto/ml_kem/ml_kem.c
1230
int stride = bits * DEGREE / 8;
crypto/openssl/crypto/ml_kem/ml_kem.c
1233
scalar_decode(out, in, bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1234
scalar_decompress(out, bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
1251
static void vector_compress(scalar *a, int bits, int rank)
crypto/openssl/crypto/ml_kem/ml_kem.c
1254
scalar_compress(a++, bits);
crypto/openssl/crypto/ml_kem/ml_kem.c
2242
#define case_encap_seed(bits) \
crypto/openssl/crypto/ml_kem/ml_kem.c
2243
case EVP_PKEY_ML_KEM_##bits: { \
crypto/openssl/crypto/ml_kem/ml_kem.c
2244
scalar tmp[2 * ML_KEM_##bits##_RANK]; \
crypto/openssl/crypto/ml_kem/ml_kem.c
2322
#define case_decap(bits) \
crypto/openssl/crypto/ml_kem/ml_kem.c
2323
case EVP_PKEY_ML_KEM_##bits: { \
crypto/openssl/crypto/ml_kem/ml_kem.c
2324
uint8_t cbuf[CTEXT_BYTES(bits)]; \
crypto/openssl/crypto/ml_kem/ml_kem.c
2325
scalar tmp[2 * ML_KEM_##bits##_RANK]; \
crypto/openssl/crypto/ml_kem/ml_kem.c
962
static void scalar_encode(uint8_t *out, const scalar *s, int bits)
crypto/openssl/crypto/ml_kem/ml_kem.c
970
if (used + bits < 64) {
crypto/openssl/crypto/ml_kem/ml_kem.c
972
used += bits;
crypto/openssl/crypto/ml_kem/ml_kem.c
973
} else if (used + bits > 64) {
crypto/openssl/crypto/ml_kem/ml_kem.c
976
used = (used + bits) - 64;
crypto/openssl/crypto/modes/cfb128.c
184
size_t bits, const void *key,
crypto/openssl/crypto/modes/cfb128.c
191
for (n = 0; n < bits; ++n) {
crypto/openssl/crypto/rand/rand_pool.c
161
#define ENTROPY_TO_BYTES(bits, entropy_factor) \
crypto/openssl/crypto/rand/rand_pool.c
162
(((bits) * (entropy_factor) + 7) / 8)
crypto/openssl/crypto/rc2/rc2_skey.c
289
void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits)
crypto/openssl/crypto/rc2/rc2_skey.c
301
if (bits <= 0)
crypto/openssl/crypto/rc2/rc2_skey.c
302
bits = 1024;
crypto/openssl/crypto/rc2/rc2_skey.c
303
if (bits > 1024)
crypto/openssl/crypto/rc2/rc2_skey.c
304
bits = 1024;
crypto/openssl/crypto/rc2/rc2_skey.c
319
j = (bits + 7) >> 3;
crypto/openssl/crypto/rc2/rc2_skey.c
321
c = (0xff >> (-bits & 0x07));
crypto/openssl/crypto/rsa/rsa_depr.c
29
RSA *RSA_generate_key(int bits, unsigned long e_value,
crypto/openssl/crypto/rsa/rsa_depr.c
52
if (RSA_generate_key_ex(rsa, bits, e, cb)) {
crypto/openssl/crypto/rsa/rsa_gen.c
265
static int rsa_multiprime_keygen(RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_gen.c
281
if (bits < RSA_MIN_MODULUS_BITS) {
crypto/openssl/crypto/rsa/rsa_gen.c
295
if (primes < RSA_DEFAULT_PRIME_NUM || primes > ossl_rsa_multip_cap(bits)) {
crypto/openssl/crypto/rsa/rsa_gen.c
31
static int rsa_keygen(OSSL_LIB_CTX *libctx, RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_gen.c
323
quo = bits / primes;
crypto/openssl/crypto/rsa/rsa_gen.c
324
rmd = bits % primes;
crypto/openssl/crypto/rsa/rsa_gen.c
41
int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb)
crypto/openssl/crypto/rsa/rsa_gen.c
44
return rsa->meth->rsa_keygen(rsa, bits, e_value, cb);
crypto/openssl/crypto/rsa/rsa_gen.c
46
return RSA_generate_multi_prime_key(rsa, bits, RSA_DEFAULT_PRIME_NUM,
crypto/openssl/crypto/rsa/rsa_gen.c
50
int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_gen.c
56
return rsa->meth->rsa_multi_prime_keygen(rsa, bits, primes,
crypto/openssl/crypto/rsa/rsa_gen.c
563
if (!ossl_rsa_multiprime_derive(rsa, bits, primes, e_value,
crypto/openssl/crypto/rsa/rsa_gen.c
611
static int rsa_keygen(OSSL_LIB_CTX *libctx, RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_gen.c
617
ok = ossl_rsa_sp800_56b_generate_key(rsa, bits, e_value, cb);
crypto/openssl/crypto/rsa/rsa_gen.c
625
&& bits >= 2048
crypto/openssl/crypto/rsa/rsa_gen.c
627
ok = ossl_rsa_sp800_56b_generate_key(rsa, bits, e_value, cb);
crypto/openssl/crypto/rsa/rsa_gen.c
629
ok = rsa_multiprime_keygen(rsa, bits, primes, e_value, cb);
crypto/openssl/crypto/rsa/rsa_gen.c
66
return rsa->meth->rsa_keygen(rsa, bits, e_value, cb);
crypto/openssl/crypto/rsa/rsa_gen.c
71
return rsa_keygen(rsa->libctx, rsa, bits, primes, e_value, cb, 0);
crypto/openssl/crypto/rsa/rsa_gen.c
82
int ossl_rsa_multiprime_derive(RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_lib.c
1299
int EVP_PKEY_CTX_set_rsa_keygen_bits(EVP_PKEY_CTX *ctx, int bits)
crypto/openssl/crypto/rsa/rsa_lib.c
1302
size_t bits2 = bits;
crypto/openssl/crypto/rsa/rsa_lib.c
385
int bits = BN_num_bits(rsa->n);
crypto/openssl/crypto/rsa/rsa_lib.c
392
if (ex_primes <= 0 || (ex_primes + 2) > ossl_rsa_multip_cap(bits))
crypto/openssl/crypto/rsa/rsa_lib.c
396
return ossl_ifc_ffc_compute_security_bits(bits);
crypto/openssl/crypto/rsa/rsa_lib.c
911
int n, i, bits;
crypto/openssl/crypto/rsa/rsa_lib.c
930
bits = safe_BN_num_bits(sk_BIGNUM_const_value(exps, i));
crypto/openssl/crypto/rsa/rsa_lib.c
931
if (bits > n)
crypto/openssl/crypto/rsa/rsa_lib.c
936
bits = safe_BN_num_bits(sk_BIGNUM_const_value(factors, i));
crypto/openssl/crypto/rsa/rsa_lib.c
937
if (bits > n)
crypto/openssl/crypto/rsa/rsa_lib.c
942
bits = safe_BN_num_bits(sk_BIGNUM_const_value(coeffs, i));
crypto/openssl/crypto/rsa/rsa_lib.c
943
if (bits > n)
crypto/openssl/crypto/rsa/rsa_local.h
145
int (*rsa_keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
crypto/openssl/crypto/rsa/rsa_local.h
146
int (*rsa_multi_prime_keygen)(RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_local.h
153
int ossl_rsa_multiprime_derive(RSA *rsa, int bits, int primes,
crypto/openssl/crypto/rsa/rsa_local.h
167
int ossl_rsa_multip_cap(int bits);
crypto/openssl/crypto/rsa/rsa_meth.c
254
int (*RSA_meth_get_keygen(const RSA_METHOD *meth))(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb)
crypto/openssl/crypto/rsa/rsa_meth.c
260
int (*keygen)(RSA *rsa, int bits, BIGNUM *e,
crypto/openssl/crypto/rsa/rsa_meth.c
267
int (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth))(RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb)
crypto/openssl/crypto/rsa/rsa_meth.c
273
int (*keygen)(RSA *rsa, int bits,
crypto/openssl/crypto/rsa/rsa_mp.c
102
if (bits < 1024)
crypto/openssl/crypto/rsa/rsa_mp.c
104
else if (bits < 4096)
crypto/openssl/crypto/rsa/rsa_mp.c
106
else if (bits < 8192)
crypto/openssl/crypto/rsa/rsa_mp.c
98
int ossl_rsa_multip_cap(int bits)
crypto/openssl/crypto/rsa/rsa_x931g.c
150
int RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,
crypto/openssl/crypto/rsa/rsa_x931g.c
166
if (!BN_X931_generate_Xpq(Xp, Xq, bits, ctx))
crypto/openssl/crypto/slh_dsa/slh_fors.c
309
uint32_t bits = 0;
crypto/openssl/crypto/slh_dsa/slh_fors.c
314
while (bits < b) {
crypto/openssl/crypto/slh_dsa/slh_fors.c
317
bits += 8;
crypto/openssl/crypto/slh_dsa/slh_fors.c
319
bits -= b;
crypto/openssl/crypto/slh_dsa/slh_fors.c
320
*out++ = (total >> bits) & mask;
crypto/openssl/crypto/whrlpool/wp_dgst.c
104
c->bitlen[0] += bits;
crypto/openssl/crypto/whrlpool/wp_dgst.c
105
if (c->bitlen[0] < bits) { /* overflow */
crypto/openssl/crypto/whrlpool/wp_dgst.c
115
while (bits) {
crypto/openssl/crypto/whrlpool/wp_dgst.c
116
if (bitoff == 0 && (n = bits / WHIRLPOOL_BBLOCK)) {
crypto/openssl/crypto/whrlpool/wp_dgst.c
119
bits %= WHIRLPOOL_BBLOCK;
crypto/openssl/crypto/whrlpool/wp_dgst.c
124
if (bits >= bitrem) {
crypto/openssl/crypto/whrlpool/wp_dgst.c
125
bits -= bitrem;
crypto/openssl/crypto/whrlpool/wp_dgst.c
132
memcpy(c->data + byteoff, inp, bits / 8);
crypto/openssl/crypto/whrlpool/wp_dgst.c
133
bitoff += (unsigned int)bits;
crypto/openssl/crypto/whrlpool/wp_dgst.c
134
bits = 0;
crypto/openssl/crypto/whrlpool/wp_dgst.c
154
while (bits) {
crypto/openssl/crypto/whrlpool/wp_dgst.c
164
bits -= inpgap;
crypto/openssl/crypto/whrlpool/wp_dgst.c
175
if (bits > 8) {
crypto/openssl/crypto/whrlpool/wp_dgst.c
183
bits -= 8;
crypto/openssl/crypto/whrlpool/wp_dgst.c
199
bitoff += (unsigned int)bits;
crypto/openssl/crypto/whrlpool/wp_dgst.c
207
bits = 0;
crypto/openssl/crypto/whrlpool/wp_dgst.c
92
void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, size_t bits)
crypto/openssl/crypto/whrlpool/wp_dgst.c
96
bitrem = bitoff % 8, inpgap = (8 - (unsigned int)bits % 8) & 7;
crypto/openssl/crypto/x509/v3_bitst.c
45
ASN1_BIT_STRING *bits,
crypto/openssl/crypto/x509/v3_bitst.c
50
if (ASN1_BIT_STRING_get_bit(bits, bnam->bitnum))
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
108
static EVP_PKEY *generate_rsa_key_short(OSSL_LIB_CTX *libctx, unsigned int bits)
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
113
pkey = EVP_PKEY_Q_keygen(libctx, propq, "RSA", (size_t)bits);
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
127
int bits = 0;
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
185
if (EVP_PKEY_get_int_param(pkey, OSSL_PKEY_PARAM_BITS, &bits) == 0) {
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
191
fprintf(stdout, "\nNumber of bits: %d\n\n", bits);
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
245
unsigned int bits = 4096;
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
262
bits = (unsigned int)bits_i;
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
266
if (bits < 2048)
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
271
pkey = generate_rsa_key_short(libctx, bits);
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
273
pkey = generate_rsa_key_long(libctx, bits);
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
35
static EVP_PKEY *generate_rsa_key_long(OSSL_LIB_CTX *libctx, unsigned int bits)
crypto/openssl/demos/pkey/EVP_PKEY_RSA_keygen.c
58
if (EVP_PKEY_CTX_set_rsa_keygen_bits(genctx, bits) <= 0) {
crypto/openssl/engines/e_padlock.c
147
const int bits,
crypto/openssl/engines/e_padlock.c
150
const int bits,
crypto/openssl/include/crypto/aes_platform.h
17
int vpaes_set_encrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/include/crypto/aes_platform.h
19
int vpaes_set_decrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/include/crypto/aes_platform.h
190
int aesni_set_encrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/include/crypto/aes_platform.h
192
int aesni_set_decrypt_key(const unsigned char *userKey, int bits,
crypto/openssl/include/crypto/aes_platform.h
299
void aes_t4_set_encrypt_key(const unsigned char *key, int bits, AES_KEY *ks);
crypto/openssl/include/crypto/aes_platform.h
300
void aes_t4_set_decrypt_key(const unsigned char *key, int bits, AES_KEY *ks);
crypto/openssl/include/crypto/aes_platform.h
425
int rv64i_zkne_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
427
int rv64i_zknd_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
434
int rv64i_zvkned_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
436
int rv64i_zvkned_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
500
int rv32i_zkne_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
503
int rv32i_zknd_zkne_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
505
int rv32i_zbkb_zkne_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
507
int rv32i_zbkb_zknd_zkne_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
516
int HWAES_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aes_platform.h
518
int HWAES_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aria.h
42
int ossl_aria_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/aria.h
44
int ossl_aria_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/crypto/cmll_platform.h
23
void cmll_t4_set_key(const unsigned char *key, int bits, CAMELLIA_KEY *ks);
crypto/openssl/include/crypto/evp.h
732
int bits;
crypto/openssl/include/crypto/ml_kem.h
146
int bits;
crypto/openssl/include/openssl/aes.h
50
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/openssl/aes.h
53
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
crypto/openssl/include/openssl/bn.h
216
int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
crypto/openssl/include/openssl/bn.h
218
int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
crypto/openssl/include/openssl/bn.h
219
int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
crypto/openssl/include/openssl/bn.h
221
int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);
crypto/openssl/include/openssl/bn.h
230
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
crypto/openssl/include/openssl/bn.h
363
BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,
crypto/openssl/include/openssl/bn.h
385
int BN_generate_prime_ex2(BIGNUM *ret, int bits, int safe,
crypto/openssl/include/openssl/bn.h
388
int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add,
crypto/openssl/include/openssl/bn.h
583
int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);
crypto/openssl/include/openssl/camellia.h
59
const int bits,
crypto/openssl/include/openssl/dsa.h
163
DSA *DSA_generate_parameters(int bits, unsigned char *seed, int seed_len,
crypto/openssl/include/openssl/dsa.h
171
OSSL_DEPRECATEDIN_3_0 int DSA_generate_parameters_ex(DSA *dsa, int bits,
crypto/openssl/include/openssl/modes.h
78
size_t bits, const void *key,
crypto/openssl/include/openssl/rc2.h
41
const unsigned char *data, int bits);
crypto/openssl/include/openssl/rsa.h
128
int EVP_PKEY_CTX_set_rsa_keygen_bits(EVP_PKEY_CTX *ctx, int bits);
crypto/openssl/include/openssl/rsa.h
259
#define EVP_RSA_gen(bits) \
crypto/openssl/include/openssl/rsa.h
260
EVP_PKEY_Q_keygen(NULL, NULL, "RSA", (size_t)(0 + (bits)))
crypto/openssl/include/openssl/rsa.h
264
OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void (*callback)(int, int, void *),
crypto/openssl/include/openssl/rsa.h
270
OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
crypto/openssl/include/openssl/rsa.h
273
OSSL_DEPRECATEDIN_3_0 int RSA_generate_multi_prime_key(RSA *rsa, int bits,
crypto/openssl/include/openssl/rsa.h
284
OSSL_DEPRECATEDIN_3_0 int RSA_X931_generate_key_ex(RSA *rsa, int bits,
crypto/openssl/include/openssl/rsa.h
592
int (*RSA_meth_get_keygen(const RSA_METHOD *meth))(RSA *rsa, int bits,
crypto/openssl/include/openssl/rsa.h
596
int (*keygen)(RSA *rsa, int bits, BIGNUM *e,
crypto/openssl/include/openssl/rsa.h
600
int bits,
crypto/openssl/include/openssl/rsa.h
606
int (*keygen)(RSA *rsa, int bits,
crypto/openssl/include/openssl/ssl.h
2789
int op, int bits, int nid,
crypto/openssl/include/openssl/ssl.h
2793
int bits, int nid, void *other,
crypto/openssl/include/openssl/ssl.h
2802
int op, int bits, int nid,
crypto/openssl/include/openssl/ssl.h
2806
int op, int bits,
crypto/openssl/include/openssl/whrlpool.h
51
const void *inp, size_t bits);
crypto/openssl/include/openssl/x509v3.h
833
ASN1_BIT_STRING *bits,
crypto/openssl/providers/common/der/der_rsa_key.c
235
#define MGF1_SHA_CASE(bits, var) \
crypto/openssl/providers/common/der/der_rsa_key.c
236
case NID_sha##bits: \
crypto/openssl/providers/common/der/der_rsa_key.c
237
var = der_aid_mgf1SHA##bits##Identifier; \
crypto/openssl/providers/common/der/der_rsa_key.c
238
var##_sz = sizeof(der_aid_mgf1SHA##bits##Identifier); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
23
size_t bits = bytes * 8; \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
26
fn_set_enc_key(key, bits, &xctx->ks1.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
29
fn_set_dec_key(key, bits, &xctx->ks1.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
32
fn_set_enc_key(key + bytes, bits, &xctx->ks2.ks); \
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
664
unsigned int bits;
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
666
if (!OSSL_PARAM_get_uint(p, &bits)) {
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
670
ctx->use_bits = bits ? 1 : 0;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
296
static int ecx_get_params(void *key, OSSL_PARAM params[], int bits, int secbits,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
303
&& !OSSL_PARAM_set_int(p, bits))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
571
if (!OSSL_PARAM_set_int(p, v->bits))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
824
#define DECLARE_VARIANT(bits) \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
825
static void *ml_kem_##bits##_new(void *provctx) \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
827
return ossl_prov_ml_kem_new(provctx, NULL, EVP_PKEY_ML_KEM_##bits); \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
829
static void *ml_kem_##bits##_gen_init(void *provctx, int selection, \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
833
EVP_PKEY_ML_KEM_##bits); \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
835
const OSSL_DISPATCH ossl_ml_kem_##bits##_keymgmt_functions[] = { \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
836
{ OSSL_FUNC_KEYMGMT_NEW, (OSSL_FUNC)ml_kem_##bits##_new }, \
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
845
{ OSSL_FUNC_KEYMGMT_GEN_INIT, (OSSL_FUNC)ml_kem_##bits##_gen_init }, \
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
501
if (!OSSL_PARAM_set_int(p, key->minfo->bits))
crypto/openssl/providers/implementations/macs/kmac_prov.c
144
size_t bits);
crypto/openssl/providers/implementations/macs/kmac_prov.c
510
static unsigned int get_encode_size(size_t bits)
crypto/openssl/providers/implementations/macs/kmac_prov.c
514
while (bits && (cnt < sz)) {
crypto/openssl/providers/implementations/macs/kmac_prov.c
516
bits >>= 8;
crypto/openssl/providers/implementations/macs/kmac_prov.c
532
size_t bits)
crypto/openssl/providers/implementations/macs/kmac_prov.c
534
unsigned int len = get_encode_size(bits);
crypto/openssl/providers/implementations/macs/kmac_prov.c
544
out[i] = (unsigned char)(bits & 0xFF);
crypto/openssl/providers/implementations/macs/kmac_prov.c
545
bits >>= 8;
crypto/openssl/providers/implementations/macs/kmac_prov.c
568
size_t i, bits, len, sz;
crypto/openssl/providers/implementations/macs/kmac_prov.c
570
bits = 8 * in_len;
crypto/openssl/providers/implementations/macs/kmac_prov.c
571
len = get_encode_size(bits);
crypto/openssl/providers/implementations/macs/kmac_prov.c
581
out[i] = (bits & 0xFF);
crypto/openssl/providers/implementations/macs/kmac_prov.c
582
bits >>= 8;
crypto/openssl/ssl/record/methods/ssl3_cbc.c
146
size_t bits; /* at most 18 bits */
crypto/openssl/ssl/record/methods/ssl3_cbc.c
319
bits = 8 * mac_end_offset;
crypto/openssl/ssl/record/methods/ssl3_cbc.c
326
bits += 8 * md_block_size;
crypto/openssl/ssl/record/methods/ssl3_cbc.c
339
length_bytes[md_length_size - 4] = (unsigned char)(bits >> 24);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
340
length_bytes[md_length_size - 3] = (unsigned char)(bits >> 16);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
341
length_bytes[md_length_size - 2] = (unsigned char)(bits >> 8);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
342
length_bytes[md_length_size - 1] = (unsigned char)bits;
crypto/openssl/ssl/record/methods/ssl3_cbc.c
345
length_bytes[md_length_size - 5] = (unsigned char)(bits >> 24);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
346
length_bytes[md_length_size - 6] = (unsigned char)(bits >> 16);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
347
length_bytes[md_length_size - 7] = (unsigned char)(bits >> 8);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
348
length_bytes[md_length_size - 8] = (unsigned char)bits;
crypto/openssl/ssl/record/rec_layer_s3.c
1150
static int rlayer_security_wrapper(void *cbarg, int op, int bits, int nid,
crypto/openssl/ssl/record/rec_layer_s3.c
1155
return ssl_security(s, op, bits, nid, other);
crypto/openssl/ssl/record/record.h
190
OSSL_CORE_MAKE_FUNC(int, rlayer_security, (void *cbarg, int op, int bits, int nid, void *other))
crypto/openssl/ssl/ssl_cert.c
1222
int op, int bits, int nid, void *other,
crypto/openssl/ssl/ssl_cert.c
1235
if (op == SSL_SECOP_TMP_DH && bits < 80)
crypto/openssl/ssl/ssl_cert.c
1245
if (bits < minbits)
crypto/openssl/ssl/ssl_cert.c
1285
if (bits < minbits)
crypto/openssl/ssl/ssl_cert.c
1291
int ssl_security(const SSL_CONNECTION *s, int op, int bits, int nid, void *other)
crypto/openssl/ssl/ssl_cert.c
1293
return s->cert->sec_cb(SSL_CONNECTION_GET_USER_SSL(s), NULL, op, bits, nid,
crypto/openssl/ssl/ssl_cert.c
1297
int ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid, void *other)
crypto/openssl/ssl/ssl_cert.c
1299
return ctx->cert->sec_cb(NULL, ctx, op, bits, nid, other,
crypto/openssl/ssl/ssl_cert.c
41
int op, int bits, int nid, void *other,
crypto/openssl/ssl/ssl_lib.c
6147
int op, int bits, int nid,
crypto/openssl/ssl/ssl_lib.c
6160
int bits, int nid, void *other,
crypto/openssl/ssl/ssl_lib.c
6203
int op, int bits, int nid,
crypto/openssl/ssl/ssl_lib.c
6211
int op, int bits,
crypto/openssl/ssl/ssl_local.h
2134
int (*sec_cb)(const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid,
crypto/openssl/ssl/ssl_local.h
2599
__owur int ssl_security(const SSL_CONNECTION *s, int op, int bits, int nid,
crypto/openssl/ssl/ssl_local.h
2601
__owur int ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid,
crypto/openssl/ssl/t1_lib.c
4931
int bits = EVP_PKEY_get_bits(pkey);
crypto/openssl/ssl/t1_lib.c
4933
if (bits <= 0 || enckeylen != (size_t)bits / 8)
crypto/openssl/test/destest.c
608
static int cfb_test(int bits, unsigned char *cfb_cipher)
crypto/openssl/test/destest.c
614
DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp,
crypto/openssl/test/destest.c
619
DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp,
crypto/openssl/test/evp_libctx_test.c
687
static int rsa_keygen(int bits, EVP_PKEY **pub, EVP_PKEY **priv)
crypto/openssl/test/evp_libctx_test.c
695
if (!TEST_ptr(*priv = EVP_PKEY_Q_keygen(libctx, NULL, "RSA", (size_t)bits))
crypto/openssl/test/evp_libctx_test.c
728
int bits = 2048;
crypto/openssl/test/evp_libctx_test.c
730
ret = TEST_true(rsa_keygen(bits, &pub, &priv))
crypto/openssl/test/evp_libctx_test.c
741
&& TEST_int_eq(ctlen, bits / 8)
crypto/openssl/test/evp_pkey_provided_test.c
1461
int bits = 0, security_bits = 0, size = 0;
crypto/openssl/test/evp_pkey_provided_test.c
1467
bits = X25519_BITS;
crypto/openssl/test/evp_pkey_provided_test.c
1475
bits = X448_BITS;
crypto/openssl/test/evp_pkey_provided_test.c
1483
bits = ED25519_BITS;
crypto/openssl/test/evp_pkey_provided_test.c
1491
bits = ED448_BITS;
crypto/openssl/test/evp_pkey_provided_test.c
1523
if (!TEST_int_eq(EVP_PKEY_get_bits(pk), bits)
crypto/openssl/test/evp_test.c
1201
int bits = (int)expected->key_bits;
crypto/openssl/test/evp_test.c
1203
if (EVP_CIPHER_CTX_ctrl(ctx_base, EVP_CTRL_SET_RC2_KEY_BITS, bits, NULL) <= 0) {
crypto/openssl/test/ml_dsa_test.c
106
|| !TEST_true(EVP_PKEY_get_int_param(pkey, OSSL_PKEY_PARAM_BITS, &bits))
crypto/openssl/test/ml_dsa_test.c
107
|| !TEST_int_eq(bits, 1952 * 8)
crypto/openssl/test/ml_dsa_test.c
93
int bits = 0, sec_bits = 0, sig_len = 0;
crypto/openssl/test/rsa_test.c
306
int bits;
crypto/openssl/test/rsa_test.c
339
const int bits = rsa_security_bits_cases[n].bits;
crypto/openssl/test/rsa_test.c
341
const int bytes = (bits + 7) / 8;
crypto/openssl/test/rsa_test.c
354
memset(num, vals[bits % 8], bytes);
crypto/openssl/test/slh_dsa_test.c
337
int bits = 0, sec_bits = 0, sig_len = 0;
crypto/openssl/test/slh_dsa_test.c
348
if (!TEST_true(EVP_PKEY_get_int_param(pkey, OSSL_PKEY_PARAM_BITS, &bits))
crypto/openssl/test/slh_dsa_test.c
349
|| !TEST_int_eq(bits, 8 * 2 * n)
lib/libc/aarch64/_fpmath.h
35
} bits;
lib/libc/aarch64/_fpmath.h
52
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/aarch64/_fpmath.h
53
(a)[1] = (uint32_t)((u).bits.manl >> 32); \
lib/libc/aarch64/_fpmath.h
54
(a)[2] = (uint32_t)(u).bits.manh; \
lib/libc/aarch64/_fpmath.h
55
(a)[3] = (uint32_t)((u).bits.manh >> 32); \
lib/libc/amd64/_fpmath.h
38
} bits;
lib/libc/amd64/_fpmath.h
47
#define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
lib/libc/amd64/_fpmath.h
53
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/amd64/_fpmath.h
54
(a)[1] = (uint32_t)(u).bits.manh; \
lib/libc/arm/_fpmath.h
54
} bits;
lib/libc/arm/_fpmath.h
65
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/arm/_fpmath.h
66
(a)[1] = (uint32_t)(u).bits.manh; \
lib/libc/gdtoa/_hdtoa.c
116
float redux = one[u.bits.sign];
lib/libc/gdtoa/_hdtoa.c
118
u.bits.exp = offset;
lib/libc/gdtoa/_hdtoa.c
121
*decpt += u.bits.exp - offset;
lib/libc/gdtoa/_hdtoa.c
124
manh = u.bits.manh;
lib/libc/gdtoa/_hdtoa.c
125
manl = u.bits.manl;
lib/libc/gdtoa/_hdtoa.c
81
*sign = u.bits.sign;
lib/libc/gdtoa/_hdtoa.c
85
*decpt = u.bits.exp - DBL_ADJ;
lib/libc/gdtoa/_hdtoa.c
92
*decpt = u.bits.exp - (514 + DBL_ADJ);
lib/libc/gdtoa/_hldtoa.c
103
*decpt = u.bits.exp - (514 + LDBL_ADJ);
lib/libc/gdtoa/_hldtoa.c
130
float redux = one[u.bits.sign];
lib/libc/gdtoa/_hldtoa.c
135
u.bits.exp = offset;
lib/libc/gdtoa/_hldtoa.c
138
*decpt += u.bits.exp - offset;
lib/libc/gdtoa/_hldtoa.c
145
manh = u.bits.manh;
lib/libc/gdtoa/_hldtoa.c
146
manl = u.bits.manl;
lib/libc/gdtoa/_hldtoa.c
89
*sign = u.bits.sign;
lib/libc/gdtoa/_hldtoa.c
93
*decpt = u.bits.exp - LDBL_ADJ;
lib/libc/gdtoa/_ldtoa.c
63
uint32_t bits[(LDBL_MANT_DIG + 31) / 32];
lib/libc/gdtoa/_ldtoa.c
64
void *vbits = bits;
lib/libc/gdtoa/_ldtoa.c
73
*sign = u.bits.sign;
lib/libc/gdtoa/_ldtoa.c
74
fpi.rounding ^= (fpi.rounding >> 1) & u.bits.sign;
lib/libc/gdtoa/_ldtoa.c
76
be = u.bits.exp - (LDBL_MAX_EXP - 1) - (LDBL_MANT_DIG - 1);
lib/libc/gdtoa/_ldtoa.c
77
LDBL_TO_ARRAY32(u, bits);
lib/libc/gdtoa/_ldtoa.c
83
bits[LDBL_MANT_DIG / 32] |= 1 << ((LDBL_MANT_DIG - 1) % 32);
lib/libc/gen/fpclassify.c
45
if (u.bits.exp == 0) {
lib/libc/gen/fpclassify.c
46
if (u.bits.man == 0)
lib/libc/gen/fpclassify.c
50
if (u.bits.exp == 255) {
lib/libc/gen/fpclassify.c
51
if (u.bits.man == 0)
lib/libc/gen/fpclassify.c
64
if (u.bits.exp == 0) {
lib/libc/gen/fpclassify.c
65
if ((u.bits.manl | u.bits.manh) == 0)
lib/libc/gen/fpclassify.c
69
if (u.bits.exp == 2047) {
lib/libc/gen/fpclassify.c
70
if ((u.bits.manl | u.bits.manh) == 0)
lib/libc/gen/fpclassify.c
83
if (u.bits.exp == 0) {
lib/libc/gen/fpclassify.c
84
if ((u.bits.manl | u.bits.manh) == 0)
lib/libc/gen/fpclassify.c
90
if (u.bits.exp == 2047) {
lib/libc/gen/fpclassify.c
91
if ((u.bits.manl | u.bits.manh) == 0)
lib/libc/gen/fpclassify.c
96
if (u.bits.exp == 32767) {
lib/libc/gen/fpclassify.c
97
if ((u.bits.manl | u.bits.manh) == 0)
lib/libc/gen/frexp.c
39
switch (u.bits.exp) {
lib/libc/gen/frexp.c
41
if ((u.bits.manl | u.bits.manh) == 0) {
lib/libc/gen/frexp.c
45
*ex = u.bits.exp - 1536;
lib/libc/gen/frexp.c
46
u.bits.exp = 1022;
lib/libc/gen/frexp.c
52
*ex = u.bits.exp - 1022;
lib/libc/gen/frexp.c
53
u.bits.exp = 1022;
lib/libc/gen/isinf.c
48
return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0);
lib/libc/gen/isinf.c
57
return (u.bits.exp == 255 && u.bits.man == 0);
lib/libc/gen/isinf.c
68
return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0);
lib/libc/gen/isinf.c
70
return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0);
lib/libc/gen/isnan.c
60
return (u.bits.exp == 2047 && (u.bits.manl != 0 || u.bits.manh != 0));
lib/libc/gen/isnan.c
69
return (u.bits.exp == 255 && u.bits.man != 0);
lib/libc/gen/rand48.h
85
u.ieee.bits.exp = 1022 - s; \
lib/libc/gen/setmode.c
112
newmode &= ~((clrval<<6) & set->bits);
lib/libc/gen/setmode.c
114
newmode &= ~((clrval<<3) & set->bits);
lib/libc/gen/setmode.c
116
newmode &= ~(clrval & set->bits);
lib/libc/gen/setmode.c
120
newmode |= (value<<6) & set->bits;
lib/libc/gen/setmode.c
122
newmode |= (value<<3) & set->bits;
lib/libc/gen/setmode.c
124
newmode |= value & set->bits;
lib/libc/gen/setmode.c
129
newmode |= set->bits;
lib/libc/gen/setmode.c
133
newmode &= ~set->bits;
lib/libc/gen/setmode.c
138
newmode |= set->bits;
lib/libc/gen/setmode.c
377
set->bits = who ? who : STANDARD_BITS;
lib/libc/gen/setmode.c
386
set->bits = (who ? who : mask) & oparg;
lib/libc/gen/setmode.c
397
set->bits = (mode_t)~0;
lib/libc/gen/setmode.c
400
set->bits = mask;
lib/libc/gen/setmode.c
420
set->cmd, set->bits, set->cmd2 ? " cmd2:" : "",
lib/libc/gen/setmode.c
451
clrbits |= nset->bits;
lib/libc/gen/setmode.c
452
setbits &= ~nset->bits;
lib/libc/gen/setmode.c
453
Xbits &= ~nset->bits;
lib/libc/gen/setmode.c
455
setbits |= nset->bits;
lib/libc/gen/setmode.c
456
clrbits &= ~nset->bits;
lib/libc/gen/setmode.c
457
Xbits &= ~nset->bits;
lib/libc/gen/setmode.c
459
Xbits |= nset->bits & ~setbits;
lib/libc/gen/setmode.c
466
set->bits = clrbits;
lib/libc/gen/setmode.c
472
set->bits = setbits;
lib/libc/gen/setmode.c
478
set->bits = Xbits;
lib/libc/gen/setmode.c
60
mode_t bits;
lib/libc/i386/_fpmath.h
37
} bits;
lib/libc/i386/_fpmath.h
46
#define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
lib/libc/i386/_fpmath.h
52
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/i386/_fpmath.h
53
(a)[1] = (uint32_t)(u).bits.manh; \
lib/libc/include/fpmath.h
52
} bits;
lib/libc/include/fpmath.h
77
} bits;
lib/libc/inet/inet_cidr_ntop.c
107
inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) {
lib/libc/inet/inet_cidr_ntop.c
113
if ((bits < -1) || (bits > 32)) {
lib/libc/inet/inet_cidr_ntop.c
119
if (bits == -1)
lib/libc/inet/inet_cidr_ntop.c
127
bytes = (((bits <= 0) ? 1 : bits) + 7) / 8;
lib/libc/inet/inet_cidr_ntop.c
136
if (bits != -1) {
lib/libc/inet/inet_cidr_ntop.c
140
dst += SPRINTF((dst, "/%u", bits));
lib/libc/inet/inet_cidr_ntop.c
151
inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) {
lib/libc/inet/inet_cidr_ntop.c
165
if ((bits < -1) || (bits > 128)) {
lib/libc/inet/inet_cidr_ntop.c
224
if (src[15] || bits == -1 || bits > 120)
lib/libc/inet/inet_cidr_ntop.c
226
else if (src[14] || bits > 112)
lib/libc/inet/inet_cidr_ntop.c
247
if (bits != -1)
lib/libc/inet/inet_cidr_ntop.c
248
tp += SPRINTF((tp, "/%u", bits));
lib/libc/inet/inet_cidr_ntop.c
42
inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size);
lib/libc/inet/inet_cidr_ntop.c
44
inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size);
lib/libc/inet/inet_cidr_ntop.c
61
inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size) {
lib/libc/inet/inet_cidr_ntop.c
64
return (inet_cidr_ntop_ipv4(src, bits, dst, size));
lib/libc/inet/inet_cidr_ntop.c
66
return (inet_cidr_ntop_ipv6(src, bits, dst, size));
lib/libc/inet/inet_cidr_pton.c
108
bits = -1;
lib/libc/inet/inet_cidr_pton.c
110
bits = getbits(src, ipv6);
lib/libc/inet/inet_cidr_pton.c
111
if (bits == -2)
lib/libc/inet/inet_cidr_pton.c
117
if (bits == -1) {
lib/libc/inet/inet_cidr_pton.c
119
bits = ipv6 ? 128 : 32;
lib/libc/inet/inet_cidr_pton.c
129
if (((bits - (ipv6 ? 96 : 0)) / 8) > (dst - odst))
lib/libc/inet/inet_cidr_pton.c
136
*pbits = bits;
lib/libc/inet/inet_cidr_pton.c
156
int bits;
lib/libc/inet/inet_cidr_pton.c
168
bits = -1;
lib/libc/inet/inet_cidr_pton.c
201
inet_cidr_pton_ipv4(curtok, tp, &bits, 1) == 0) {
lib/libc/inet/inet_cidr_pton.c
207
bits = getbits(src, 1);
lib/libc/inet/inet_cidr_pton.c
208
if (bits == -2)
lib/libc/inet/inet_cidr_pton.c
239
*pbits = bits;
lib/libc/inet/inet_cidr_pton.c
253
int bits = 0;
lib/libc/inet/inet_cidr_pton.c
263
bits *= 10;
lib/libc/inet/inet_cidr_pton.c
264
bits += cp - digits;
lib/libc/inet/inet_cidr_pton.c
265
if (bits == 0 && *src != '\0') /*%< no leading zeros */
lib/libc/inet/inet_cidr_pton.c
267
if (bits > (ipv6 ? 128 : 32)) /*%< range error */
lib/libc/inet/inet_cidr_pton.c
271
return (bits);
lib/libc/inet/inet_cidr_pton.c
43
static int inet_cidr_pton_ipv4 (const char *src, u_char *dst, int *bits,
lib/libc/inet/inet_cidr_pton.c
45
static int inet_cidr_pton_ipv6 (const char *src, u_char *dst, int *bits);
lib/libc/inet/inet_cidr_pton.c
67
inet_cidr_pton(int af, const char *src, void *dst, int *bits) {
lib/libc/inet/inet_cidr_pton.c
70
return (inet_cidr_pton_ipv4(src, dst, bits, 0));
lib/libc/inet/inet_cidr_pton.c
72
return (inet_cidr_pton_ipv6(src, dst, bits));
lib/libc/inet/inet_cidr_pton.c
84
int n, ch, tmp, bits;
lib/libc/inet/inet_net_ntop.c
102
for (b = bits / 8; b > 0; b--) {
lib/libc/inet/inet_net_ntop.c
118
b = bits % 8;
lib/libc/inet/inet_net_ntop.c
134
advance = snprintf(dst, ep - dst, "/%u", bits);
lib/libc/inet/inet_net_ntop.c
146
inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
lib/libc/inet/inet_net_ntop.c
151
if (bits < 0 || bits > 128) {
lib/libc/inet/inet_net_ntop.c
159
ret = snprintf(dst, size, "%s/%d", buf, bits);
lib/libc/inet/inet_net_ntop.c
51
inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size)
lib/libc/inet/inet_net_ntop.c
55
return (inet_net_ntop_ipv4(src, bits, dst, size));
lib/libc/inet/inet_net_ntop.c
57
return (inet_net_ntop_ipv6(src, bits, dst, size));
lib/libc/inet/inet_net_ntop.c
78
inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
lib/libc/inet/inet_net_ntop.c
90
if (bits < 0 || bits > 32) {
lib/libc/inet/inet_net_ntop.c
94
if (bits == 0) {
lib/libc/inet/inet_net_pton.c
151
bits = -1;
lib/libc/inet/inet_net_pton.c
156
bits = 0;
lib/libc/inet/inet_net_pton.c
160
bits *= 10;
lib/libc/inet/inet_net_pton.c
161
bits += n;
lib/libc/inet/inet_net_pton.c
162
if (bits > 32)
lib/libc/inet/inet_net_pton.c
178
if (bits == -1) {
lib/libc/inet/inet_net_pton.c
180
bits = 32;
lib/libc/inet/inet_net_pton.c
182
bits = 4;
lib/libc/inet/inet_net_pton.c
184
bits = 24;
lib/libc/inet/inet_net_pton.c
186
bits = 16;
lib/libc/inet/inet_net_pton.c
188
bits = 8;
lib/libc/inet/inet_net_pton.c
190
if (bits < ((dst - odst) * 8))
lib/libc/inet/inet_net_pton.c
191
bits = (dst - odst) * 8;
lib/libc/inet/inet_net_pton.c
194
while (bits > ((dst - odst) * 8)) {
lib/libc/inet/inet_net_pton.c
199
return (bits);
lib/libc/inet/inet_net_pton.c
216
int bits;
lib/libc/inet/inet_net_pton.c
236
bits = 128;
lib/libc/inet/inet_net_pton.c
238
bits = strtonum(sep, 0, 128, &errstr);
lib/libc/inet/inet_net_pton.c
245
bytes = (bits + 7) / 8;
lib/libc/inet/inet_net_pton.c
251
return (bits);
lib/libc/inet/inet_net_pton.c
91
int n, ch, tmp, dirty, bits;
lib/libc/powerpc/_fpmath.h
43
} bits;
lib/libc/powerpc/_fpmath.h
54
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/powerpc/_fpmath.h
55
(a)[1] = (uint32_t)(u).bits.manh; \
lib/libc/powerpc64/_fpmath.h
43
} bits;
lib/libc/powerpc64/_fpmath.h
54
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/powerpc64/_fpmath.h
55
(a)[1] = (uint32_t)(u).bits.manh; \
lib/libc/riscv/_fpmath.h
35
} bits;
lib/libc/riscv/_fpmath.h
51
(a)[0] = (uint32_t)(u).bits.manl; \
lib/libc/riscv/_fpmath.h
52
(a)[1] = (uint32_t)((u).bits.manl >> 32); \
lib/libc/riscv/_fpmath.h
53
(a)[2] = (uint32_t)(u).bits.manh; \
lib/libc/riscv/_fpmath.h
54
(a)[3] = (uint32_t)((u).bits.manh >> 32); \
lib/libc/tests/net/inet_net_test.cc
100
auto ret = inet_net_ntop(AF_INET, &in, bits,
lib/libc/tests/net/inet_net_test.cc
137
int bits;
lib/libc/tests/net/inet_net_test.cc
202
auto bits = inet_net_pton(AF_INET6, addr.input.c_str(),
lib/libc/tests/net/inet_net_test.cc
204
ATF_REQUIRE(bits != -1);
lib/libc/tests/net/inet_net_test.cc
205
ATF_REQUIRE_EQ(bits, addr.bits);
lib/libc/tests/net/inet_net_test.cc
219
auto ret = inet_net_ntop(AF_INET6, &in6, bits,
lib/libc/tests/net/inet_net_test.cc
53
int bits;
lib/libc/tests/net/inet_net_test.cc
83
auto bits = inet_net_pton(AF_INET, addr.input.c_str(),
lib/libc/tests/net/inet_net_test.cc
85
ATF_REQUIRE(bits != -1);
lib/libc/tests/net/inet_net_test.cc
86
ATF_REQUIRE_EQ(bits, addr.bits);
lib/libcam/scsi_cmdparse.c
135
u_char bits = 0; /* For bit fields */
lib/libcam/scsi_cmdparse.c
191
bits = buff[ind++];
lib/libcam/scsi_cmdparse.c
194
value = (bits >> (shift - width)) &
lib/libcam/scsi_cmdparse.c
199
shift, bits, value, width, mask[width]);
lib/libiconv_modules/EUC/citrus_euc.c
148
ei->bits[x] = (int)_bcs_strtol(v, (char **)&e, 0);
lib/libiconv_modules/EUC/citrus_euc.c
257
wchar = (wchar & ~ei->mask) | ei->bits[cs];
lib/libiconv_modules/EUC/citrus_euc.c
289
if (m == ei->bits[cs])
lib/libiconv_modules/EUC/citrus_euc.c
92
wchar_t bits[4];
lib/libiconv_modules/UTF7/citrus_utf7.c
175
if (psenc->bits > 0 || psenc->cache > 0)
lib/libiconv_modules/UTF7/citrus_utf7.c
195
if (psenc->bits >= BASE64_BIT)
lib/libiconv_modules/UTF7/citrus_utf7.c
198
psenc->bits = psenc->cache = 0;
lib/libiconv_modules/UTF7/citrus_utf7.c
211
switch (psenc->bits) {
lib/libiconv_modules/UTF7/citrus_utf7.c
213
psenc->bits += BASE64_BIT;
lib/libiconv_modules/UTF7/citrus_utf7.c
216
psenc->bits -= (UTF16_BIT - BASE64_BIT);
lib/libiconv_modules/UTF7/citrus_utf7.c
217
*u16 = (psenc->cache >> psenc->bits) &
lib/libiconv_modules/UTF7/citrus_utf7.c
302
int bits, i;
lib/libiconv_modules/UTF7/citrus_utf7.c
304
if (psenc->chlen != 0 || psenc->bits > BASE64_BIT)
lib/libiconv_modules/UTF7/citrus_utf7.c
309
if (psenc->bits > 0) {
lib/libiconv_modules/UTF7/citrus_utf7.c
310
bits = BASE64_BIT - psenc->bits;
lib/libiconv_modules/UTF7/citrus_utf7.c
311
i = (psenc->cache << bits) & BASE64_MAX;
lib/libiconv_modules/UTF7/citrus_utf7.c
313
psenc->bits = psenc->cache = 0;
lib/libiconv_modules/UTF7/citrus_utf7.c
319
if (psenc->bits != 0)
lib/libiconv_modules/UTF7/citrus_utf7.c
326
if (psenc->bits > 0)
lib/libiconv_modules/UTF7/citrus_utf7.c
332
bits = UTF16_BIT + psenc->bits;
lib/libiconv_modules/UTF7/citrus_utf7.c
333
psenc->bits = bits % BASE64_BIT;
lib/libiconv_modules/UTF7/citrus_utf7.c
334
while ((bits -= BASE64_BIT) >= 0) {
lib/libiconv_modules/UTF7/citrus_utf7.c
335
i = (psenc->cache >> bits) & BASE64_MAX;
lib/libiconv_modules/UTF7/citrus_utf7.c
389
int bits, pos;
lib/libiconv_modules/UTF7/citrus_utf7.c
391
if (psenc->chlen != 0 || psenc->bits > BASE64_BIT)
lib/libiconv_modules/UTF7/citrus_utf7.c
395
if (psenc->bits > 0) {
lib/libiconv_modules/UTF7/citrus_utf7.c
398
bits = BASE64_BIT - psenc->bits;
lib/libiconv_modules/UTF7/citrus_utf7.c
399
pos = (psenc->cache << bits) & BASE64_MAX;
lib/libiconv_modules/UTF7/citrus_utf7.c
402
psenc->bits = psenc->cache = 0;
lib/libiconv_modules/UTF7/citrus_utf7.c
406
if (psenc->bits != 0)
lib/libiconv_modules/UTF7/citrus_utf7.c
65
bits: 4, /* need to hold 0 - 15 */
lib/libifconfig/libifconfig_sfp_tables.tpl.h
107
local t = string.format("uint%d_t", enum.bits)
lib/libnetmap/libnetmap.h
455
uint64_t bits, uint64_t mingap);
lib/libnetmap/nmport.c
267
uint64_t maxoff, uint64_t bits, uint64_t mingap)
lib/libnetmap/nmport.c
289
opt->nro_offset_bits = bits;
lib/libnetmap/nmport.c
384
NPKEY_DECL(offset, bits, 0)
lib/libnetmap/nmport.c
494
uint64_t initial, bits;
lib/libnetmap/nmport.c
499
bits = 0;
lib/libnetmap/nmport.c
500
if (nmport_key(p, offset, bits) != NULL)
lib/libnetmap/nmport.c
501
bits = atoi(nmport_key(p, offset, bits));
lib/libnetmap/nmport.c
503
return nmport_offset(d, initial, initial, bits, 0);
lib/libnvmf/nvmf_tcp.c
1005
ic_resp.dgst.bits.hdgst_enable != 0) ||
lib/libnvmf/nvmf_tcp.c
1007
ic_resp.dgst.bits.ddgst_enable != 0)) {
lib/libnvmf/nvmf_tcp.c
1031
qp->header_digests = ic_resp.dgst.bits.hdgst_enable != 0;
lib/libnvmf/nvmf_tcp.c
1032
qp->data_digests = ic_resp.dgst.bits.ddgst_enable != 0;
lib/libnvmf/nvmf_tcp.c
1061
if (params->tcp.header_digests && ic_req.dgst.bits.hdgst_enable != 0)
lib/libnvmf/nvmf_tcp.c
1062
ic_resp.dgst.bits.hdgst_enable = 1;
lib/libnvmf/nvmf_tcp.c
1063
if (params->tcp.data_digests && ic_req.dgst.bits.ddgst_enable != 0)
lib/libnvmf/nvmf_tcp.c
1064
ic_resp.dgst.bits.ddgst_enable = 1;
lib/libnvmf/nvmf_tcp.c
1076
qp->header_digests = ic_resp.dgst.bits.hdgst_enable != 0;
lib/libnvmf/nvmf_tcp.c
1077
qp->data_digests = ic_resp.dgst.bits.ddgst_enable != 0;
lib/libnvmf/nvmf_tcp.c
885
if (pdu->dgst.bits.reserved != 0) {
lib/libnvmf/nvmf_tcp.c
989
ic_req.dgst.bits.hdgst_enable = 1;
lib/libnvmf/nvmf_tcp.c
991
ic_req.dgst.bits.ddgst_enable = 1;
lib/libusb/libusb20_desc.h
123
#define LIBUSB20_ME_INTEGER(n, field, ismeta, un, u, bits, a, size) \
lib/libusb/libusb20_desc.h
124
ismeta ( LIBUSB20_ME_INT##bits | \
lib/libusb/libusb20_desc.h
127
LIBUSB20_NOT(ismeta) ( u##int##bits##_t \
lib/libusb/libusb20_desc.h
128
__aligned((bits) / 8) field a; )
lib/libvgl/bitmap.c
252
*VGLBitmapCreate(int type, int xsize, int ysize, byte *bits)
lib/libvgl/bitmap.c
270
object->Bitmap = bits;
lib/libvgl/vgl.h
110
VGLBitmap *VGLBitmapCreate(int type, int xsize, int ysize, byte *bits);
lib/libvgl/vgl.h
49
#define VGLBITMAP_INITIALIZER(t, x, y, bits) \
lib/libvgl/vgl.h
50
{ (t), (x), (y), (x), (y), 0, 0, (bits), -1 }
lib/msun/ld128/e_rem_pio2l.h
71
u.bits.manh < 0x921fb54442d1LL) {
lib/msun/ld128/s_exp2l.c
397
i0 = (u.bits.manl & 0xffffffff) + TBLSIZE / 2;
lib/msun/ld128/s_nanl.c
39
uint32_t bits[4];
lib/msun/ld128/s_nanl.c
42
_scan_nan(u.bits, 4, s);
lib/msun/ld128/s_nanl.c
43
u.ieee.bits.exp = 0x7fff;
lib/msun/ld128/s_nanl.c
44
u.ieee.bits.manh |= 1ULL << 47; /* make it a quiet NaN */
lib/msun/ld80/e_rem_pio2l.h
81
if (ex < BIAS + 25 || (ex == BIAS + 25 && u.bits.manh < 0xc90fdaa2)) {
lib/msun/ld80/s_exp2l.c
259
i0 = u.bits.manl + TBLSIZE / 2;
lib/msun/ld80/s_nanl.c
39
uint32_t bits[3];
lib/msun/ld80/s_nanl.c
42
_scan_nan(u.bits, 3, s);
lib/msun/ld80/s_nanl.c
43
u.ieee.bits.exp = 0x7fff;
lib/msun/ld80/s_nanl.c
44
u.ieee.bits.manh |= 0xc0000000; /* make it a quiet NaN */
lib/msun/src/e_acosl.c
49
if(expt==BIAS && ((u.bits.manh&~LDBL_NBIT)|u.bits.manl)==0) {
lib/msun/src/e_acosl.c
74
u.bits.manl = 0;
lib/msun/src/e_asinl.c
39
if(expt==BIAS && ((u.bits.manh&~LDBL_NBIT)|u.bits.manl)==0)
lib/msun/src/e_asinl.c
59
if(u.bits.manh>=THRESH) { /* if |x| is close to 1 */
lib/msun/src/e_asinl.c
64
u.bits.manl = 0;
lib/msun/src/e_atan2l.c
58
((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl)!=0) || /* x is NaN */
lib/msun/src/e_atan2l.c
60
((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl)!=0)) /* y is NaN */
lib/msun/src/e_atan2l.c
62
if (expsignx==BIAS && ((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl)==0)
lib/msun/src/e_atan2l.c
67
if(expty==0 && ((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl)==0) {
lib/msun/src/e_atan2l.c
76
if(exptx==0 && ((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl)==0)
lib/msun/src/e_fmodl.c
100
if(uy.bits.exp == 0) { /* subnormal y */
lib/msun/src/e_fmodl.c
102
iy = uy.bits.exp - (BIAS + 512);
lib/msun/src/e_fmodl.c
104
iy = uy.bits.exp - BIAS;
lib/msun/src/e_fmodl.c
108
hx = SET_NBIT(ux.bits.manh);
lib/msun/src/e_fmodl.c
109
hy = SET_NBIT(uy.bits.manh);
lib/msun/src/e_fmodl.c
110
lx = ux.bits.manl;
lib/msun/src/e_fmodl.c
111
ly = uy.bits.manl;
lib/msun/src/e_fmodl.c
135
ux.bits.manh = hx; /* The mantissa is truncated here if needed. */
lib/msun/src/e_fmodl.c
136
ux.bits.manl = lx;
lib/msun/src/e_fmodl.c
138
ux.bits.exp = iy + (BIAS + 512);
lib/msun/src/e_fmodl.c
141
ux.bits.exp = iy + BIAS;
lib/msun/src/e_fmodl.c
71
sx = ux.bits.sign;
lib/msun/src/e_fmodl.c
74
if((uy.bits.exp|uy.bits.manh|uy.bits.manl)==0 || /* y=0 */
lib/msun/src/e_fmodl.c
75
(ux.bits.exp == BIAS + LDBL_MAX_EXP) || /* or x not finite */
lib/msun/src/e_fmodl.c
76
(uy.bits.exp == BIAS + LDBL_MAX_EXP &&
lib/msun/src/e_fmodl.c
77
((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl)!=0)) /* or y is NaN */
lib/msun/src/e_fmodl.c
79
if(ux.bits.exp<=uy.bits.exp) {
lib/msun/src/e_fmodl.c
80
if((ux.bits.exp<uy.bits.exp) ||
lib/msun/src/e_fmodl.c
81
(ux.bits.manh<=uy.bits.manh &&
lib/msun/src/e_fmodl.c
82
(ux.bits.manh<uy.bits.manh ||
lib/msun/src/e_fmodl.c
83
ux.bits.manl<uy.bits.manl))) {
lib/msun/src/e_fmodl.c
86
if(ux.bits.manh==uy.bits.manh && ux.bits.manl==uy.bits.manl) {
lib/msun/src/e_fmodl.c
92
if(ux.bits.exp == 0) { /* subnormal x */
lib/msun/src/e_fmodl.c
94
ix = ux.bits.exp - (BIAS + 512);
lib/msun/src/e_fmodl.c
96
ix = ux.bits.exp - BIAS;
lib/msun/src/e_hypotl.c
106
uv.e = y1; uv.bits.manl = 0; y1 = uv.e;
lib/msun/src/e_hypotl.c
109
uv.e = t1; uv.bits.manl = 0; t1 = uv.e;
lib/msun/src/e_hypotl.c
24
h = uv.bits.manh; \
lib/msun/src/e_hypotl.c
25
l = uv.bits.manl; \
lib/msun/src/e_hypotl.c
99
uv.e = t1; uv.bits.manl = 0; t1 = uv.e;
lib/msun/src/e_sqrtl.c
100
if (u.bits.exp == 0) {
lib/msun/src/e_sqrtl.c
111
if ((u.bits.exp - 0x3ffe) & 1) { /* n is odd. */
lib/msun/src/e_sqrtl.c
112
k += u.bits.exp - 0x3fff; /* 2k = n - 1. */
lib/msun/src/e_sqrtl.c
113
u.bits.exp = 0x3fff; /* u.e in [1,2). */
lib/msun/src/e_sqrtl.c
115
k += u.bits.exp - 0x4000; /* 2k = n - 2. */
lib/msun/src/e_sqrtl.c
116
u.bits.exp = 0x4000; /* u.e in [2,4). */
lib/msun/src/e_sqrtl.c
128
u.bits.manl = 0; /* Zero out lower bits. */
lib/msun/src/e_sqrtl.c
132
u.bits.exp += (k >> 1) - 1;
lib/msun/src/e_sqrtl.c
156
u.bits.exp--;
lib/msun/src/e_sqrtl.c
42
if (++u.bits.manl == 0) {
lib/msun/src/e_sqrtl.c
43
if (++u.bits.manh == 0) {
lib/msun/src/e_sqrtl.c
44
u.bits.exp++;
lib/msun/src/e_sqrtl.c
45
u.bits.manh |= LDBL_NBIT;
lib/msun/src/e_sqrtl.c
58
if (u.bits.manl-- == 0) {
lib/msun/src/e_sqrtl.c
59
if (u.bits.manh-- == LDBL_NBIT) {
lib/msun/src/e_sqrtl.c
60
u.bits.exp--;
lib/msun/src/e_sqrtl.c
61
u.bits.manh |= LDBL_NBIT;
lib/msun/src/e_sqrtl.c
87
if (u.bits.exp == LDBL_MAX_EXP * 2 - 1)
lib/msun/src/e_sqrtl.c
91
if ((u.bits.manh | u.bits.manl | u.bits.exp) == 0)
lib/msun/src/e_sqrtl.c
95
if (u.bits.sign)
lib/msun/src/math_private.h
729
e = u.bits.exp - 16383; \
lib/msun/src/math_private.h
732
u.bits.manh &= ~m; \
lib/msun/src/math_private.h
733
u.bits.manl = 0; \
lib/msun/src/math_private.h
736
u.bits.manl &= ~m; \
lib/msun/src/s_atanl.c
42
((u.bits.manh&~LDBL_NBIT)|u.bits.manl)!=0)
lib/msun/src/s_atanl.c
49
expman = (expt << 8) | ((u.bits.manh >> (MANH_SIZE - 9)) & 0xff);
lib/msun/src/s_cbrt.c
39
uint64_t bits;
lib/msun/src/s_cbrt.c
99
u.bits=(u.bits+0x80000000)&0xffffffffc0000000ULL;
lib/msun/src/s_cbrtl.c
56
if ((u.bits.manh | u.bits.manl) == 0)
lib/msun/src/s_cbrtl.c
60
k = u.bits.exp;
lib/msun/src/s_ceill.c
30
uint64_t o = u.bits.manh; \
lib/msun/src/s_ceill.c
31
u.bits.manh += (c); \
lib/msun/src/s_ceill.c
32
if (u.bits.manh < o) \
lib/msun/src/s_ceill.c
33
u.bits.exp++; \
lib/msun/src/s_ceill.c
38
uint64_t o = u.bits.manh; \
lib/msun/src/s_ceill.c
39
u.bits.manh += (c); \
lib/msun/src/s_ceill.c
40
if (u.bits.manh < o) { \
lib/msun/src/s_ceill.c
41
u.bits.exp++; \
lib/msun/src/s_ceill.c
42
u.bits.manh |= 1llu << (LDBL_MANH_SIZE - 1); \
lib/msun/src/s_ceill.c
53
int e = u.bits.exp - LDBL_MAX_EXP + 1;
lib/msun/src/s_ceill.c
58
if (u.bits.exp > 0 ||
lib/msun/src/s_ceill.c
59
(u.bits.manh | u.bits.manl) != 0)
lib/msun/src/s_ceill.c
60
u.e = u.bits.sign ? -0.0 : 1.0;
lib/msun/src/s_ceill.c
63
if (((u.bits.manh & m) | u.bits.manl) == 0)
lib/msun/src/s_ceill.c
65
if (!u.bits.sign) {
lib/msun/src/s_ceill.c
68
u.bits.exp++;
lib/msun/src/s_ceill.c
74
u.bits.manh &= ~m;
lib/msun/src/s_ceill.c
75
u.bits.manl = 0;
lib/msun/src/s_ceill.c
80
if ((u.bits.manl & m) == 0)
lib/msun/src/s_ceill.c
82
if (!u.bits.sign) {
lib/msun/src/s_ceill.c
86
uint64_t o = u.bits.manl;
lib/msun/src/s_ceill.c
87
u.bits.manl += 1llu << (LDBL_MANT_DIG - e - 1);
lib/msun/src/s_ceill.c
88
if (u.bits.manl < o) /* got a carry */
lib/msun/src/s_ceill.c
93
u.bits.manl &= ~m;
lib/msun/src/s_copysignl.c
40
ux.bits.sign = uy.bits.sign;
lib/msun/src/s_cosl.c
63
z.bits.sign = 0;
lib/msun/src/s_cosl.c
66
if (z.bits.exp == 0)
lib/msun/src/s_cosl.c
70
if (z.bits.exp == 32767)
lib/msun/src/s_fabsl.c
41
u.bits.sign = 0;
lib/msun/src/s_floorl.c
30
uint64_t o = u.bits.manh; \
lib/msun/src/s_floorl.c
31
u.bits.manh += (c); \
lib/msun/src/s_floorl.c
32
if (u.bits.manh < o) \
lib/msun/src/s_floorl.c
33
u.bits.exp++; \
lib/msun/src/s_floorl.c
38
uint64_t o = u.bits.manh; \
lib/msun/src/s_floorl.c
39
u.bits.manh += (c); \
lib/msun/src/s_floorl.c
40
if (u.bits.manh < o) { \
lib/msun/src/s_floorl.c
41
u.bits.exp++; \
lib/msun/src/s_floorl.c
42
u.bits.manh |= 1llu << (LDBL_MANH_SIZE - 1); \
lib/msun/src/s_floorl.c
53
int e = u.bits.exp - LDBL_MAX_EXP + 1;
lib/msun/src/s_floorl.c
58
if (u.bits.exp > 0 ||
lib/msun/src/s_floorl.c
59
(u.bits.manh | u.bits.manl) != 0)
lib/msun/src/s_floorl.c
60
u.e = u.bits.sign ? -1.0 : 0.0;
lib/msun/src/s_floorl.c
63
if (((u.bits.manh & m) | u.bits.manl) == 0)
lib/msun/src/s_floorl.c
65
if (u.bits.sign) {
lib/msun/src/s_floorl.c
68
u.bits.exp++;
lib/msun/src/s_floorl.c
74
u.bits.manh &= ~m;
lib/msun/src/s_floorl.c
75
u.bits.manl = 0;
lib/msun/src/s_floorl.c
80
if ((u.bits.manl & m) == 0)
lib/msun/src/s_floorl.c
82
if (u.bits.sign) {
lib/msun/src/s_floorl.c
86
uint64_t o = u.bits.manl;
lib/msun/src/s_floorl.c
87
u.bits.manl += 1llu << (LDBL_MANT_DIG - e - 1);
lib/msun/src/s_floorl.c
88
if (u.bits.manl < o) /* got a carry */
lib/msun/src/s_floorl.c
93
u.bits.manl &= ~m;
lib/msun/src/s_fmal.c
114
bits_lost = -u.bits.exp - scale + 1;
lib/msun/src/s_fmal.c
115
if ((bits_lost != 1) ^ (int)(u.bits.manl & 1))
lib/msun/src/s_fmal.c
82
if ((u.bits.manl & 1) == 0)
lib/msun/src/s_fmax.c
50
if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0)
lib/msun/src/s_fmax.c
52
if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0)
lib/msun/src/s_fmax.c
56
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmax.c
57
return (u[u[0].bits.sign].d);
lib/msun/src/s_fmaxf.c
49
if (u[0].bits.exp == 255 && u[0].bits.man != 0)
lib/msun/src/s_fmaxf.c
51
if (u[1].bits.exp == 255 && u[1].bits.man != 0)
lib/msun/src/s_fmaxf.c
55
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmaxf.c
56
return (u[u[0].bits.sign].f);
lib/msun/src/s_fmaximum.c
51
if ((u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) ||
lib/msun/src/s_fmaximum.c
52
(u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0))
lib/msun/src/s_fmaximum.c
56
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmaximum.c
57
return (u[u[0].bits.sign].d);
lib/msun/src/s_fmaximumf.c
50
if ((u[0].bits.exp == 255 && u[0].bits.man != 0) ||
lib/msun/src/s_fmaximumf.c
51
(u[1].bits.exp == 255 && u[1].bits.man != 0))
lib/msun/src/s_fmaximumf.c
55
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmaximumf.c
56
return (u[u[0].bits.sign].f);
lib/msun/src/s_fmaximuml.c
45
if ((u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) ||
lib/msun/src/s_fmaximuml.c
46
(u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0))
lib/msun/src/s_fmaximuml.c
50
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmaximuml.c
51
return (u[0].bits.sign ? y : x);
lib/msun/src/s_fmaxl.c
44
if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0)
lib/msun/src/s_fmaxl.c
46
if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0)
lib/msun/src/s_fmaxl.c
50
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmaxl.c
51
return (u[0].bits.sign ? y : x);
lib/msun/src/s_fmin.c
50
if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0)
lib/msun/src/s_fmin.c
52
if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0)
lib/msun/src/s_fmin.c
56
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fmin.c
57
return (u[u[1].bits.sign].d);
lib/msun/src/s_fminf.c
49
if (u[0].bits.exp == 255 && u[0].bits.man != 0)
lib/msun/src/s_fminf.c
51
if (u[1].bits.exp == 255 && u[1].bits.man != 0)
lib/msun/src/s_fminf.c
55
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fminf.c
56
return (u[u[1].bits.sign].f);
lib/msun/src/s_fminimum.c
51
if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0 ||
lib/msun/src/s_fminimum.c
52
u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0)
lib/msun/src/s_fminimum.c
56
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fminimum.c
57
return (u[u[1].bits.sign].d);
lib/msun/src/s_fminimumf.c
50
if (u[0].bits.exp == 255 && u[0].bits.man != 0 ||
lib/msun/src/s_fminimumf.c
51
u[1].bits.exp == 255 && u[1].bits.man != 0)
lib/msun/src/s_fminimumf.c
55
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fminimumf.c
56
return (u[u[1].bits.sign].f);
lib/msun/src/s_fminimuml.c
45
if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0 ||
lib/msun/src/s_fminimuml.c
46
u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0)
lib/msun/src/s_fminimuml.c
50
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fminimuml.c
51
return (u[1].bits.sign ? y : x);
lib/msun/src/s_fminl.c
44
if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0)
lib/msun/src/s_fminl.c
46
if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0)
lib/msun/src/s_fminl.c
50
if (u[0].bits.sign != u[1].bits.sign)
lib/msun/src/s_fminl.c
51
return (u[1].bits.sign ? y : x);
lib/msun/src/s_frexpl.c
44
switch (u.bits.exp) {
lib/msun/src/s_frexpl.c
46
if ((u.bits.manl | u.bits.manh) == 0) {
lib/msun/src/s_frexpl.c
50
*ex = u.bits.exp - 0x4200;
lib/msun/src/s_frexpl.c
51
u.bits.exp = 0x3ffe;
lib/msun/src/s_frexpl.c
57
*ex = u.bits.exp - 0x3ffe;
lib/msun/src/s_frexpl.c
58
u.bits.exp = 0x3ffe;
lib/msun/src/s_ilogbl.c
26
if (u.bits.exp == 0) {
lib/msun/src/s_ilogbl.c
27
if ((u.bits.manl | u.bits.manh) == 0)
lib/msun/src/s_ilogbl.c
30
if (u.bits.manh == 0) {
lib/msun/src/s_ilogbl.c
32
for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1)
lib/msun/src/s_ilogbl.c
36
for (b = 0; !(u.bits.manh & m); m >>= 1)
lib/msun/src/s_ilogbl.c
43
} else if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1)
lib/msun/src/s_ilogbl.c
44
return (u.bits.exp - LDBL_MAX_EXP + 1);
lib/msun/src/s_ilogbl.c
45
else if (u.bits.manl != 0 || u.bits.manh != 0)
lib/msun/src/s_isfinite.c
39
return (u.bits.exp != 2047);
lib/msun/src/s_isfinite.c
48
return (u.bits.exp != 255);
lib/msun/src/s_isfinite.c
57
return (u.bits.exp != 32767);
lib/msun/src/s_isnan.c
42
return (u.bits.exp == 2047 && (u.bits.manl != 0 || u.bits.manh != 0));
lib/msun/src/s_isnan.c
58
return (u.bits.exp == 255 && u.bits.man != 0);
lib/msun/src/s_isnan.c
68
return (u.bits.exp == 32767 && (u.bits.manl != 0 || u.bits.manh != 0));
lib/msun/src/s_isnormal.c
39
return (u.bits.exp != 0 && u.bits.exp != 2047);
lib/msun/src/s_isnormal.c
48
return (u.bits.exp != 0 && u.bits.exp != 255);
lib/msun/src/s_isnormal.c
57
return (u.bits.exp != 0 && u.bits.exp != 32767);
lib/msun/src/s_logbl.c
26
if (u.bits.exp == 0) {
lib/msun/src/s_logbl.c
27
if ((u.bits.manl | u.bits.manh) == 0) { /* x == 0 */
lib/msun/src/s_logbl.c
28
u.bits.sign = 1;
lib/msun/src/s_logbl.c
32
if (u.bits.manh == 0) {
lib/msun/src/s_logbl.c
34
for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1)
lib/msun/src/s_logbl.c
38
for (b = 0; !(u.bits.manh & m); m >>= 1)
lib/msun/src/s_logbl.c
46
if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1) /* normal */
lib/msun/src/s_logbl.c
47
return ((long double)(u.bits.exp - LDBL_MAX_EXP + 1));
lib/msun/src/s_modfl.c
51
#define GETFRAC(bits, n) ((bits) & ~(MASK << (n)))
lib/msun/src/s_modfl.c
64
e = ux.bits.exp - LDBL_MAX_EXP + 1;
lib/msun/src/s_modfl.c
67
*iptr = zero[ux.bits.sign];
lib/msun/src/s_modfl.c
70
if ((GETFRAC(ux.bits.manh, HIBITS - 1 - e) |
lib/msun/src/s_modfl.c
71
ux.bits.manl) == 0) { /* X is an integer. */
lib/msun/src/s_modfl.c
73
return (zero[ux.bits.sign]);
lib/msun/src/s_modfl.c
76
ux.bits.manh >>= HIBITS - 1 - e;
lib/msun/src/s_modfl.c
77
ux.bits.manh <<= HIBITS - 1 - e;
lib/msun/src/s_modfl.c
78
ux.bits.manl = 0;
lib/msun/src/s_modfl.c
87
return (zero[ux.bits.sign]);
lib/msun/src/s_modfl.c
89
if (GETFRAC(ux.bits.manl, LDBL_MANT_DIG - 1 - e) == 0) {
lib/msun/src/s_modfl.c
92
return (zero[ux.bits.sign]);
lib/msun/src/s_modfl.c
95
ux.bits.manl >>= LDBL_MANT_DIG - 1 - e;
lib/msun/src/s_modfl.c
96
ux.bits.manl <<= LDBL_MANT_DIG - 1 - e;
lib/msun/src/s_nan.c
101
uint32_t bits[1];
lib/msun/src/s_nan.c
104
_scan_nan(u.bits, 1, s);
lib/msun/src/s_nan.c
105
u.bits[0] |= 0x7fc00000;
lib/msun/src/s_nan.c
84
uint32_t bits[2];
lib/msun/src/s_nan.c
87
_scan_nan(u.bits, 2, s);
lib/msun/src/s_nan.c
89
u.bits[1] |= 0x7ff80000;
lib/msun/src/s_nan.c
91
u.bits[0] |= 0x7ff80000;
lib/msun/src/s_nextafterl.c
38
if ((ux.bits.exp == 0x7fff &&
lib/msun/src/s_nextafterl.c
39
((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl) != 0) ||
lib/msun/src/s_nextafterl.c
40
(uy.bits.exp == 0x7fff &&
lib/msun/src/s_nextafterl.c
41
((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl) != 0))
lib/msun/src/s_nextafterl.c
45
ux.bits.manh = 0; /* return +-minsubnormal */
lib/msun/src/s_nextafterl.c
46
ux.bits.manl = 1;
lib/msun/src/s_nextafterl.c
47
ux.bits.sign = uy.bits.sign;
lib/msun/src/s_nextafterl.c
52
if(ux.bits.manl==0) {
lib/msun/src/s_nextafterl.c
53
if ((ux.bits.manh&~LDBL_NBIT)==0)
lib/msun/src/s_nextafterl.c
54
ux.bits.exp -= 1;
lib/msun/src/s_nextafterl.c
55
ux.bits.manh = (ux.bits.manh - 1) | (ux.bits.manh & LDBL_NBIT);
lib/msun/src/s_nextafterl.c
57
ux.bits.manl -= 1;
lib/msun/src/s_nextafterl.c
59
ux.bits.manl += 1;
lib/msun/src/s_nextafterl.c
60
if(ux.bits.manl==0) {
lib/msun/src/s_nextafterl.c
61
ux.bits.manh = (ux.bits.manh + 1) | (ux.bits.manh & LDBL_NBIT);
lib/msun/src/s_nextafterl.c
62
if ((ux.bits.manh&~LDBL_NBIT)==0)
lib/msun/src/s_nextafterl.c
63
ux.bits.exp += 1;
lib/msun/src/s_nextafterl.c
66
if(ux.bits.exp==0x7fff) return x+x; /* overflow */
lib/msun/src/s_nextafterl.c
67
if(ux.bits.exp==0) { /* underflow */
lib/msun/src/s_nexttoward.c
41
(uy.bits.exp == 0x7fff &&
lib/msun/src/s_nexttoward.c
42
((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl) != 0))
lib/msun/src/s_nexttoward.c
46
INSERT_WORDS(x,uy.bits.sign<<31,1); /* return +-minsubnormal */
lib/msun/src/s_nexttowardf.c
32
(uy.bits.exp == LDBL_INFNAN_EXP &&
lib/msun/src/s_nexttowardf.c
33
((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl) != 0))
lib/msun/src/s_nexttowardf.c
37
SET_FLOAT_WORD(x,(uy.bits.sign<<31)|1);/* return +-minsubnormal */
lib/msun/src/s_remquol.c
100
if(ux.bits.exp == 0) { /* subnormal x */
lib/msun/src/s_remquol.c
102
ix = ux.bits.exp - (BIAS + 512);
lib/msun/src/s_remquol.c
104
ix = ux.bits.exp - BIAS;
lib/msun/src/s_remquol.c
108
if(uy.bits.exp == 0) { /* subnormal y */
lib/msun/src/s_remquol.c
110
iy = uy.bits.exp - (BIAS + 512);
lib/msun/src/s_remquol.c
112
iy = uy.bits.exp - BIAS;
lib/msun/src/s_remquol.c
116
hx = SET_NBIT(ux.bits.manh);
lib/msun/src/s_remquol.c
117
hy = SET_NBIT(uy.bits.manh);
lib/msun/src/s_remquol.c
118
lx = ux.bits.manl;
lib/msun/src/s_remquol.c
119
ly = uy.bits.manl;
lib/msun/src/s_remquol.c
143
ux.bits.manh = hx; /* The integer bit is truncated here if needed. */
lib/msun/src/s_remquol.c
144
ux.bits.manl = lx;
lib/msun/src/s_remquol.c
146
ux.bits.exp = iy + (BIAS + 512);
lib/msun/src/s_remquol.c
149
ux.bits.exp = iy + BIAS;
lib/msun/src/s_remquol.c
164
ux.bits.sign ^= sx;
lib/msun/src/s_remquol.c
74
sx = ux.bits.sign;
lib/msun/src/s_remquol.c
75
sxy = sx ^ uy.bits.sign;
lib/msun/src/s_remquol.c
76
ux.bits.sign = 0; /* |x| */
lib/msun/src/s_remquol.c
77
uy.bits.sign = 0; /* |y| */
lib/msun/src/s_remquol.c
80
if((uy.bits.exp|uy.bits.manh|uy.bits.manl)==0 || /* y=0 */
lib/msun/src/s_remquol.c
81
(ux.bits.exp == BIAS + LDBL_MAX_EXP) || /* or x not finite */
lib/msun/src/s_remquol.c
82
(uy.bits.exp == BIAS + LDBL_MAX_EXP &&
lib/msun/src/s_remquol.c
83
((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl)!=0)) /* or y is NaN */
lib/msun/src/s_remquol.c
85
if(ux.bits.exp<=uy.bits.exp) {
lib/msun/src/s_remquol.c
86
if((ux.bits.exp<uy.bits.exp) ||
lib/msun/src/s_remquol.c
87
(ux.bits.manh<=uy.bits.manh &&
lib/msun/src/s_remquol.c
88
(ux.bits.manh<uy.bits.manh ||
lib/msun/src/s_remquol.c
89
ux.bits.manl<uy.bits.manl))) {
lib/msun/src/s_remquol.c
93
if(ux.bits.manh==uy.bits.manh && ux.bits.manl==uy.bits.manl) {
lib/msun/src/s_signbit.c
39
return (u.bits.sign);
lib/msun/src/s_signbit.c
48
return (u.bits.sign);
lib/msun/src/s_signbit.c
57
return (u.bits.sign);
lib/msun/src/s_sincosl.c
54
z.bits.sign = 0;
lib/msun/src/s_sincosl.c
64
if (z.bits.exp == 0) {
lib/msun/src/s_sincosl.c
73
if (z.bits.exp == 32767) {
lib/msun/src/s_sinl.c
53
s = z.bits.sign;
lib/msun/src/s_sinl.c
54
z.bits.sign = 0;
lib/msun/src/s_sinl.c
57
if (z.bits.exp == 0)
lib/msun/src/s_sinl.c
61
if (z.bits.exp == 32767)
lib/msun/src/s_tanl.c
59
s = z.bits.sign;
lib/msun/src/s_tanl.c
60
z.bits.sign = 0;
lib/msun/src/s_tanl.c
63
if (z.bits.exp == 0)
lib/msun/src/s_tanl.c
67
if (z.bits.exp == 32767)
lib/msun/src/s_truncl.c
40
int e = u.bits.exp - LDBL_MAX_EXP + 1;
lib/msun/src/s_truncl.c
45
u.e = zero[u.bits.sign];
lib/msun/src/s_truncl.c
48
if (((u.bits.manh & m) | u.bits.manl) == 0)
lib/msun/src/s_truncl.c
51
u.bits.manh &= ~m;
lib/msun/src/s_truncl.c
52
u.bits.manl = 0;
lib/msun/src/s_truncl.c
57
if ((u.bits.manl & m) == 0)
lib/msun/src/s_truncl.c
60
u.bits.manl &= ~m;
lib/virtual_oss/bt/sbc_encode.c
222
sbc->bits[ch][sb] = 0;
lib/virtual_oss/bt/sbc_encode.c
224
sbc->bits[ch][sb] = bitneed[ch][sb] - bitslice;
lib/virtual_oss/bt/sbc_encode.c
225
if (sbc->bits[ch][sb] > 16)
lib/virtual_oss/bt/sbc_encode.c
226
sbc->bits[ch][sb] = 16;
lib/virtual_oss/bt/sbc_encode.c
237
if ((sbc->bits[ch][sb] >= 2) && (sbc->bits[ch][sb] < 16)) {
lib/virtual_oss/bt/sbc_encode.c
238
sbc->bits[ch][sb]++;
lib/virtual_oss/bt/sbc_encode.c
242
sbc->bits[ch][sb] = 2;
lib/virtual_oss/bt/sbc_encode.c
260
if (sbc->bits[ch][sb] < 16) {
lib/virtual_oss/bt/sbc_encode.c
261
sbc->bits[ch][sb]++;
lib/virtual_oss/bt/sbc_encode.c
383
if (sbc->bits[chan][sb] == 0)
lib/virtual_oss/bt/sbc_encode.c
385
mask[chan][sb] = BM(sbc->bits[chan][sb]);
lib/virtual_oss/bt/sbc_encode.c
397
if (sbc->bits[chan][sb] == 0)
lib/virtual_oss/bt/sbc_encode.c
439
levels[chan][sb] = (1 << sbc->bits[chan][sb]) - 1;
lib/virtual_oss/bt/sbc_encode.c
448
if (sbc->bits[chan][sb] == 0) {
lib/virtual_oss/bt/sbc_encode.c
597
if (sbc->bits[chan][sb] == 0)
lib/virtual_oss/bt/sbc_encode.c
600
sbc_store_bits_crc(sbc, sbc->bits[chan][sb], sbc->output[i++]);
lib/virtual_oss/bt/sbc_encode.c
629
sbc_decode_frame(struct bt_config *cfg, int bits)
lib/virtual_oss/bt/sbc_encode.c
650
sbc->maxoffset = bits;
lib/virtual_oss/bt/sbc_encode.c
685
if (sbc->bits[chan][sb] == 0) {
lib/virtual_oss/bt/sbc_encode.c
690
sbc_load_bits_crc(sbc, sbc->bits[chan][sb]);
lib/virtual_oss/bt/sbc_encode.h
64
int bits[2][8];
lib/virtual_oss/sndio/sndio.c
106
int bits = sndio_get_bits(pformat);
lib/virtual_oss/sndio/sndio.c
108
if (bits == -1) {
lib/virtual_oss/sndio/sndio.c
125
par.bits = bits;
lib/virtual_oss/sndio/sndio.c
126
par.bps = SIO_BPS(bits);
lib/virtual_oss/sndio/sndio.c
137
if ((int)par.sig != sig || (int)par.bits != bits || (int)par.le != le)
lib/virtual_oss/sndio/sndio.c
139
if ((int)par.bits != bits)
libexec/getty/subr.c
394
int bits;
libexec/getty/subr.c
457
return (dp->bits);
sbin/etherswitchcfg/etherswitchcfg.c
102
bits++;
sbin/etherswitchcfg/etherswitchcfg.c
103
if (bits) {
sbin/etherswitchcfg/etherswitchcfg.c
105
while ((i = *bits++) != '\0') {
sbin/etherswitchcfg/etherswitchcfg.c
110
for (; (c = *bits) > 32; bits++)
sbin/etherswitchcfg/etherswitchcfg.c
113
for (; *bits > 32; bits++)
sbin/etherswitchcfg/etherswitchcfg.c
93
printb(const char *s, unsigned v, const char *bits)
sbin/etherswitchcfg/etherswitchcfg.c
98
if (bits && *bits == 8)
sbin/fsck_msdosfs/fat.c
122
bitmap_ctor(long_bitmap_t *lbp, size_t bits, bool allone)
sbin/fsck_msdosfs/fat.c
124
size_t bitmap_size = roundup2(bits, LONG_BIT) / (LONG_BIT / 8);
sbin/fsck_msdosfs/fat.c
133
lbp->count = bits;
sbin/ifconfig/af_nd6.c
150
uint32_t bits;
sbin/ifconfig/af_nd6.c
169
bits = (nd.ndi.flags | (isdefif << 15));
sbin/ifconfig/af_nd6.c
170
printf("\tnd6 options=%x", bits);
sbin/ifconfig/af_nd6.c
171
print_bits("options", &bits, 1, ND6BITS, nitems(ND6BITS));
sbin/ifconfig/ifconfig.c
1954
printb(const char *s, unsigned v, const char *bits)
sbin/ifconfig/ifconfig.c
1959
if (bits && *bits == 8)
sbin/ifconfig/ifconfig.c
1963
if (bits) {
sbin/ifconfig/ifconfig.c
1964
bits++;
sbin/ifconfig/ifconfig.c
1966
while ((i = *bits++) != '\0') {
sbin/ifconfig/ifconfig.c
1971
for (; (c = *bits) > 32; bits++)
sbin/ifconfig/ifconfig.c
1974
for (; *bits > 32; bits++)
sbin/ifconfig/ifconfig.h
274
void printb(const char *s, unsigned value, const char *bits);
sbin/ipf/common/genmask.c
17
int bits;
sbin/ipf/common/genmask.c
42
bits = (int)strtol(msk, &endptr, 0);
sbin/ipf/common/genmask.c
47
if ((*endptr != '\0') || (bits < 0) || (bits > 128))
sbin/ipf/common/genmask.c
49
fill6bits(bits, mskp->i6);
sbin/ipf/common/genmask.c
52
if (*endptr != '\0' || bits > 32 || bits < 0)
sbin/ipf/common/genmask.c
54
if (bits == 0)
sbin/ipf/common/genmask.c
57
addr = htonl(0xffffffff << (32 - bits));
sbin/ipf/ipnat/ipnat_y.y
644
| rhdaddr { int bits;
sbin/ipf/ipnat/ipnat_y.y
650
bits = count4bits($1.m.in4.s_addr);
sbin/ipf/ipnat/ipnat_y.y
652
bits = count6bits($1.m.i6);
sbin/ipf/ipnat/ipnat_y.y
653
if (($1.f == AF_INET) && (bits != 0) &&
sbin/ipf/ipnat/ipnat_y.y
654
(bits != 32)) {
sbin/ipf/ipnat/ipnat_y.y
657
(bits != 0) && (bits != 128)) {
sbin/ipf/libipf/alist_new.c
15
int a, b, c, d, bits;
sbin/ipf/libipf/alist_new.c
45
bits = -1;
sbin/ipf/libipf/alist_new.c
49
bits = atoi(slash + 1);
sbin/ipf/libipf/alist_new.c
53
if (bits > 32)
sbin/ipf/libipf/alist_new.c
59
if (bits > 0 && bits < 33) {
sbin/ipf/libipf/alist_new.c
60
mask = 0xffffffff << (32 - bits);
sbin/ipf/libipf/alist_new.c
75
if (bits > 128)
sbin/ipf/libipf/alist_new.c
77
fill6bits(bits, al->al_i6mask.i6);
sbin/ipf/libipf/fill6bits.c
14
fill6bits(int bits, u_int *msk)
sbin/ipf/libipf/fill6bits.c
16
if (bits == 0) {
sbin/ipf/libipf/fill6bits.c
29
if (bits == 128)
sbin/ipf/libipf/fill6bits.c
31
if (bits > 96) {
sbin/ipf/libipf/fill6bits.c
32
msk[3] = htonl(msk[3] << (128 - bits));
sbin/ipf/libipf/fill6bits.c
33
} else if (bits > 64) {
sbin/ipf/libipf/fill6bits.c
35
msk[2] = htonl(msk[2] << (96 - bits));
sbin/ipf/libipf/fill6bits.c
36
} else if (bits > 32) {
sbin/ipf/libipf/fill6bits.c
39
msk[1] = htonl(msk[1] << (64 - bits));
sbin/ipf/libipf/fill6bits.c
44
msk[0] = htonl(msk[0] << (32 - bits));
sbin/md5/md5.c
689
int bits;
sbin/md5/md5.c
730
bits = byte = 0;
sbin/md5/md5.c
735
if (++bits == 8) {
sbin/md5/md5.c
739
bits = byte = 0;
sbin/md5/md5.c
755
if (input_mode == input_bits && bits != 0)
sbin/pfctl/parse.y
6127
int bits;
sbin/pfctl/parse.y
6133
bits = unmask(&addr->addr.v.a.mask);
sbin/pfctl/parse.y
6134
if ((af == AF_INET && bits < 32) ||
sbin/pfctl/parse.y
6135
(af == AF_INET6 && bits < 128))
sbin/pfctl/parse.y
6137
"%s/%d", a, bits);
sbin/pfctl/pf_print_state.c
117
int bits = unmask(&addr->v.a.mask);
sbin/pfctl/pf_print_state.c
118
if (bits < (af == AF_INET ? 32 : 128))
sbin/pfctl/pf_print_state.c
119
printf("/%d", bits);
sbin/pfctl/pfctl_parser.c
2098
int bits;
sbin/pfctl/pfctl_parser.c
2109
bits = 32;
sbin/pfctl/pfctl_parser.c
2114
bits = 128;
sbin/pfctl/pfctl_parser.c
2120
if ((test && (not || addr.pfra_net != bits)) ||
sbin/pfctl/pfctl_parser.c
2121
addr.pfra_net > bits) {
sbin/route/route.c
1165
inet_makemask(struct sockaddr_in *sin_mask, u_long bits)
sbin/route/route.c
1171
if (bits != 0)
sbin/route/route.c
1172
mask = 0xffffffff << (32 - bits);
sbin/routed/rtquery/rtquery.c
358
fd_set bits;
sbin/routed/rtquery/rtquery.c
408
FD_ZERO(&bits);
sbin/routed/rtquery/rtquery.c
410
FD_SET(soc, &bits);
sbin/routed/rtquery/rtquery.c
413
cc = select(soc+1, &bits, 0,0, &delay);
sbin/routed/trace.c
462
static const struct bits if_bits[] = {
sbin/routed/trace.c
468
static const struct bits is_bits[] = {
sbin/routed/trace.c
512
static const struct bits rs_bits[] = {
sbin/routed/trace.c
526
trace_bits(const struct bits *tbl,
stand/kboot/kboot/arch/powerpc64/load_addr.c
189
static uint8_t bits = 0;
stand/kboot/kboot/arch/powerpc64/load_addr.c
193
if (bits == 0) {
stand/kboot/kboot/arch/powerpc64/load_addr.c
195
bits = 32;
stand/kboot/kboot/arch/powerpc64/load_addr.c
202
bits = 64;
stand/kboot/kboot/arch/powerpc64/load_addr.c
204
bits = 64;
stand/kboot/kboot/arch/powerpc64/load_addr.c
208
return (bits);
sys/amd64/amd64/efirt_machdep.c
190
int bits, i, mode;
sys/amd64/amd64/efirt_machdep.c
256
bits = pmap_cache_bits(kernel_pmap, mode, false) | X86_PG_RW |
sys/amd64/amd64/efirt_machdep.c
262
pte_store(pte, va | bits);
sys/amd64/amd64/efirt_machdep.c
286
bits = pmap_cache_bits(kernel_pmap, VM_MEMATTR_WRITE_BACK,
sys/amd64/amd64/efirt_machdep.c
288
pte_store(pte, bits);
sys/amd64/amd64/pmap.c
1376
static void pmap_pte_props(pt_entry_t *pte, u_long bits, u_long mask);
sys/amd64/amd64/pmap.c
9376
pmap_pte_props(pt_entry_t *pte, u_long bits, u_long mask)
sys/amd64/amd64/pmap.c
9383
npte |= bits;
sys/arm/mv/mv_pci.c
674
pcib_map_check(uint32_t *map, uint32_t start, uint32_t bits)
sys/arm/mv/mv_pci.c
678
for (i = start; i < start + bits; i++)
sys/arm/mv/mv_pci.c
686
pcib_map_set(uint32_t *map, uint32_t start, uint32_t bits)
sys/arm/mv/mv_pci.c
690
for (i = start; i < start + bits; i++)
sys/arm/mv/mv_pci.c
701
uint32_t bits, bits_limit, i, *map, min_alloc, size;
sys/arm/mv/mv_pci.c
720
bits = size / min_alloc;
sys/arm/mv/mv_pci.c
722
for (i = 0; i + bits <= bits_limit; i += bits)
sys/arm/mv/mv_pci.c
723
if (pcib_map_check(map, i, bits)) {
sys/arm/mv/mv_pci.c
724
pcib_map_set(map, i, bits);
sys/arm/nvidia/tegra_soctherm.c
376
extract_signed(uint32_t reg, int shift, int bits)
sys/arm/nvidia/tegra_soctherm.c
381
mask = (1 << bits) - 1;
sys/arm/nvidia/tegra_soctherm.c
382
val = ((reg >> shift) & mask) << (32 - bits);
sys/arm/nvidia/tegra_soctherm.c
383
val >>= 32 - bits;
sys/arm64/apple/apple_pinctrl.c
67
#define HSET4(sc, reg, bits) \
sys/arm64/apple/apple_pinctrl.c
68
HWRITE4((sc), (reg), HREAD4((sc), (reg)) | (bits))
sys/arm64/apple/apple_pinctrl.c
69
#define HCLR4(sc, reg, bits) \
sys/arm64/apple/apple_pinctrl.c
70
HWRITE4((sc), (reg), HREAD4((sc), (reg)) & ~(bits))
sys/arm64/arm64/pmap.c
1558
pmap_init_asids(struct asid_set *set, int bits)
sys/arm64/arm64/pmap.c
1562
set->asid_bits = bits;
sys/arm64/arm64/pmap.c
407
SYSCTL_INT(_vm_pmap_asid, OID_AUTO, bits, CTLFLAG_RD, &asids.asid_bits, 0,
sys/arm64/arm64/pmap.c
415
SYSCTL_INT(_vm_pmap_vmid, OID_AUTO, bits, CTLFLAG_RD, &vmids.asid_bits, 0,
sys/arm64/arm64/pmap.c
542
#define pmap_clear_bits(table, bits) atomic_clear_64(table, bits)
sys/arm64/arm64/pmap.c
546
#define pmap_set_bits(table, bits) atomic_set_64(table, bits)
sys/arm64/arm64/pmap.c
8233
pt_entry_t bits, mask;
sys/arm64/arm64/pmap.c
8245
bits = 0;
sys/arm64/arm64/pmap.c
8248
bits = ATTR_S1_IDX(mode);
sys/arm64/arm64/pmap.c
8252
bits |= ATTR_S1_XN;
sys/arm64/arm64/pmap.c
8268
bits |= ATTR_S1_AP(ATTR_S1_AP_RO);
sys/arm64/arm64/pmap.c
8271
bits |= ATTR_S1_PXN;
sys/arm64/arm64/pmap.c
8273
bits |= ATTR_S1_UXN;
sys/arm64/arm64/pmap.c
8282
(pmap_load(ptep) & mask) == bits) {
sys/arm64/arm64/pmap.c
8366
pte |= bits;
sys/cam/mmc/mmc_da.c
268
mmc_get_bits(uint32_t *bits, int bit_len, int start, int size)
sys/cam/mmc/mmc_da.c
272
uint32_t retval = bits[i] >> shift;
sys/cam/mmc/mmc_da.c
274
retval |= bits[i - 1] << (32 - shift);
sys/cam/scsi/scsi_all.c
4999
uint8_t bits;
sys/cam/scsi/scsi_all.c
5021
&bits) == 0 && bits != 0) {
sys/cam/scsi/scsi_all.c
5023
scsi_block_sbuf(sb, bits);
sys/cam/scsi/scsi_all.c
5026
&bits) == 0 && bits != 0) {
sys/cam/scsi/scsi_all.c
5028
scsi_stream_sbuf(sb, bits);
sys/compat/linux/linux.c
541
short bits = 0;
sys/compat/linux/linux.c
544
bits |= POLLIN;
sys/compat/linux/linux.c
546
bits |= POLLPRI;
sys/compat/linux/linux.c
548
bits |= POLLOUT;
sys/compat/linux/linux.c
550
bits |= POLLERR;
sys/compat/linux/linux.c
552
bits |= POLLHUP;
sys/compat/linux/linux.c
554
bits |= POLLNVAL;
sys/compat/linux/linux.c
556
bits |= POLLRDNORM;
sys/compat/linux/linux.c
558
bits |= POLLRDBAND;
sys/compat/linux/linux.c
560
bits |= POLLWRBAND;
sys/compat/linux/linux.c
562
bits |= POLLWRNORM;
sys/compat/linux/linux.c
577
bits |= POLLRDHUP;
sys/compat/linux/linux.c
587
*bev = bits;
sys/compat/linux/linux.c
593
short bits = 0;
sys/compat/linux/linux.c
596
bits |= LINUX_POLLIN;
sys/compat/linux/linux.c
598
bits |= LINUX_POLLPRI;
sys/compat/linux/linux.c
604
bits |= LINUX_POLLOUT;
sys/compat/linux/linux.c
606
bits |= LINUX_POLLERR;
sys/compat/linux/linux.c
608
bits |= LINUX_POLLHUP;
sys/compat/linux/linux.c
610
bits |= LINUX_POLLNVAL;
sys/compat/linux/linux.c
612
bits |= LINUX_POLLRDNORM;
sys/compat/linux/linux.c
614
bits |= LINUX_POLLRDBAND;
sys/compat/linux/linux.c
616
bits |= LINUX_POLLWRBAND;
sys/compat/linux/linux.c
618
bits |= LINUX_POLLRDHUP;
sys/compat/linux/linux.c
620
*lev = bits;
sys/compat/linuxkpi/common/include/linux/bitmap.h
175
bitmap_find_free_region(unsigned long *bitmap, int bits, int order)
sys/compat/linuxkpi/common/include/linux/bitmap.h
180
for (pos = 0; (end = pos + (1 << order)) <= bits; pos = end) {
sys/compat/linuxkpi/common/include/linux/hash.h
41
hash_64(u64 val, u8 bits)
sys/compat/linuxkpi/common/include/linux/hash.h
46
ret = bits;
sys/compat/linuxkpi/common/include/linux/hash.h
52
return (ret >> (64 - bits));
sys/compat/linuxkpi/common/include/linux/hash.h
56
hash_32(u32 val, u8 bits)
sys/compat/linuxkpi/common/include/linux/hash.h
61
ret = bits;
sys/compat/linuxkpi/common/include/linux/hash.h
67
return (ret >> (32 - bits));
sys/compat/linuxkpi/common/include/linux/hashtable.h
51
#define DEFINE_HASHTABLE(name, bits) \
sys/compat/linuxkpi/common/include/linux/hashtable.h
52
struct lkpi_hash_head name[1UL << (bits)]
sys/compat/linuxkpi/common/include/linux/hashtable.h
54
#define DEFINE_READ_MOSTLY_HASHTABLE(name, bits) \
sys/compat/linuxkpi/common/include/linux/hashtable.h
55
struct lkpi_hash_head name[1UL << (bits)] __read_mostly
sys/compat/linuxkpi/common/include/linux/hashtable.h
57
#define DECLARE_HASHTABLE(name, bits) \
sys/compat/linuxkpi/common/include/linux/hashtable.h
58
struct lkpi_hash_head name[1UL << (bits)]
sys/compat/linuxkpi/common/include/linux/net_dim.h
349
#define BIT_GAP(bits, end, start) ((((end) - (start)) + BIT_ULL(bits)) & (BIT_ULL(bits) - 1))
sys/compat/linuxkpi/common/include/linux/types.h
75
#define DECLARE_BITMAP(n, bits) \
sys/compat/linuxkpi/common/include/linux/types.h
76
unsigned long n[howmany(bits, sizeof(long) * 8)]
sys/crypto/armv8/armv8_crypto.h
56
int aes_v8_set_encrypt_key(const unsigned char *userKey, const int bits, const AES_key_t *key);
sys/crypto/armv8/armv8_crypto.h
57
int aes_v8_set_decrypt_key(const unsigned char *userKey, const int bits, const AES_key_t *key);
sys/crypto/camellia/camellia-api.c
37
camellia_set_key(camellia_ctx *ctx, const u_char *key, int bits)
sys/crypto/camellia/camellia-api.c
40
Camellia_Ekeygen(bits, key, ctx->subkey);
sys/crypto/camellia/camellia-api.c
41
ctx->bits = bits;
sys/crypto/camellia/camellia-api.c
48
Camellia_DecryptBlock(ctx->bits, src, ctx->subkey, dst);
sys/crypto/camellia/camellia-api.c
55
Camellia_EncryptBlock(ctx->bits, src, ctx->subkey, dst);
sys/crypto/camellia/camellia.c
81
#define CAMELLIA_ROLDQ(ll, lr, rl, rr, w0, w1, bits) \
sys/crypto/camellia/camellia.c
84
ll = (ll << bits) + (lr >> (32 - bits)); \
sys/crypto/camellia/camellia.c
85
lr = (lr << bits) + (rl >> (32 - bits)); \
sys/crypto/camellia/camellia.c
86
rl = (rl << bits) + (rr >> (32 - bits)); \
sys/crypto/camellia/camellia.c
87
rr = (rr << bits) + (w0 >> (32 - bits)); \
sys/crypto/camellia/camellia.c
90
#define CAMELLIA_ROLDQo32(ll, lr, rl, rr, w0, w1, bits) \
sys/crypto/camellia/camellia.c
94
ll = (lr << (bits - 32)) + (rl >> (64 - bits)); \
sys/crypto/camellia/camellia.c
95
lr = (rl << (bits - 32)) + (rr >> (64 - bits)); \
sys/crypto/camellia/camellia.c
96
rl = (rr << (bits - 32)) + (w0 >> (64 - bits)); \
sys/crypto/camellia/camellia.c
97
rr = (w0 << (bits - 32)) + (w1 >> (64 - bits)); \
sys/crypto/camellia/camellia.h
35
int bits; /* key-length */
sys/crypto/md4c.c
150
unsigned char bits[8];
sys/crypto/md4c.c
154
Encode (bits, context->count, 8);
sys/crypto/md4c.c
163
MD4Update (context, bits, 8);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
29
void aesni_set_encrypt_key(const void *key, int bits, void *ctx);
sys/crypto/openssl/ossl_aes_gcm.c
42
void AES_set_encrypt_key(const void *key, int bits, void *ctx);
sys/crypto/openssl/ossl_aes_gcm.c
71
void AES_set_encrypt_key(const void *key, int bits, void *ctx);
sys/crypto/rijndael/rijndael-api.c
37
rijndael_set_key(rijndael_ctx *ctx, const u_char *key, int bits)
sys/crypto/rijndael/rijndael-api.c
40
ctx->Nr = rijndaelKeySetupEnc(ctx->ek, key, bits);
sys/crypto/rijndael/rijndael-api.c
41
rijndaelKeySetupDec(ctx->dk, key, bits);
sys/crypto/skein/skein.h
259
#define Skein_Show_Block(bits,ctx,X,blkPtr,wPtr,ksEvenPtr,ksOddPtr)
sys/crypto/skein/skein.h
260
#define Skein_Show_Round(bits,ctx,r,X)
sys/crypto/skein/skein.h
261
#define Skein_Show_R_Ptr(bits,ctx,r,X_ptr)
sys/crypto/skein/skein.h
262
#define Skein_Show_Final(bits,ctx,cnt,outPtr)
sys/crypto/skein/skein.h
263
#define Skein_Show_Key(bits,ctx,key,keyBytes)
sys/crypto/skein/skein_debug.c
102
printf("\n%s",AlgoHeader(bits));
sys/crypto/skein/skein_debug.c
117
Show64(bits/64,X);
sys/crypto/skein/skein_debug.c
141
printf("\n%s [state after round %2d (permuted)]=\n",AlgoHeader(bits),(int)r);
sys/crypto/skein/skein_debug.c
142
switch (bits)
sys/crypto/skein/skein_debug.c
148
for (j=0;j<bits/64;j++)
sys/crypto/skein/skein_debug.c
150
Show64(bits/64,p);
sys/crypto/skein/skein_debug.c
154
printf("\n%s [state after round %2d]=\n",AlgoHeader(bits),(int)r);
sys/crypto/skein/skein_debug.c
155
Show64(bits/64,X);
sys/crypto/skein/skein_debug.c
162
void Skein_Show_R_Ptr(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X_ptr[])
sys/crypto/skein/skein_debug.c
167
for (i=0;i<bits/64;i++) /* copy over the words */
sys/crypto/skein/skein_debug.c
169
Skein_Show_Round(bits,h,r,X);
sys/crypto/skein/skein_debug.c
174
void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X,const u08b_t *blkPtr,
sys/crypto/skein/skein_debug.c
183
printf("\n%s Block: outBits=%4d. T0=%06X.",AlgoHeader(bits),(uint_t) h->hashBitLen,(uint_t)h->T[0]);
sys/crypto/skein/skein_debug.c
215
Show64(bits/64,X);
sys/crypto/skein/skein_debug.c
222
Show64_flag((bits/64)+1,ksPtr);
sys/crypto/skein/skein_debug.c
227
Show64(bits/64,wPtr);
sys/crypto/skein/skein_debug.c
232
Show08(bits/8,blkPtr);
sys/crypto/skein/skein_debug.c
237
void Skein_Show_Key(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes)
sys/crypto/skein/skein_debug.c
243
printf("\n%s MAC key = %4u bytes\n",AlgoHeader(bits),(unsigned) keyBytes);
sys/crypto/skein/skein_debug.c
57
static const char *AlgoHeader(uint_t bits)
sys/crypto/skein/skein_debug.c
60
switch (bits)
sys/crypto/skein/skein_debug.c
67
switch (bits)
sys/crypto/skein/skein_debug.c
76
void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr)
sys/crypto/skein/skein_debug.c
81
printf("\n%s Final output=\n",AlgoHeader(bits));
sys/crypto/skein/skein_debug.c
89
void Skein_Show_Round(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X)
sys/crypto/skein/skein_debug.h
15
void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X,const u08b_t *blkPtr,
sys/crypto/skein/skein_debug.h
17
void Skein_Show_Round(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X);
sys/crypto/skein/skein_debug.h
18
void Skein_Show_R_Ptr(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X_ptr[]);
sys/crypto/skein/skein_debug.h
19
void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr);
sys/crypto/skein/skein_debug.h
20
void Skein_Show_Key (uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes);
sys/ddb/db_pprint.c
64
u_int bits = CTF_INT_BITS(data);
sys/ddb/db_pprint.c
70
if (bits > 64) {
sys/ddb/db_pprint.c
71
db_printf("Invalid size '%d' found for integer type\n", bits);
sys/ddb/db_pprint.c
75
(long)db_get_value(addr, (bits / 8) ? (bits / 8) : 1, sign));
sys/dev/aacraid/aacraid_endian.c
36
#define TOH2(field, bits) field = le##bits##toh(field)
sys/dev/aacraid/aacraid_endian.c
37
#define TOH(field, bits) TOH2(field, bits)
sys/dev/aacraid/aacraid_endian.c
39
#define TOLE2(field, bits) field = htole##bits(field)
sys/dev/aacraid/aacraid_endian.c
40
#define TOLE(field, bits) TOLE2(field, bits)
sys/dev/aic7xxx/aic7xxx_93cx6.c
116
if (cmd->bits[i] != 0)
sys/dev/aic7xxx/aic7xxx_93cx6.c
122
if (cmd->bits[i] != 0)
sys/dev/aic7xxx/aic7xxx_93cx6.c
77
uint8_t bits[11];
sys/dev/ath/ath_hal/ar5210/ar5210_recv.c
167
ar5210SetRxFilter(struct ath_hal *ah, uint32_t bits)
sys/dev/ath/ath_hal/ar5210/ar5210_recv.c
169
if (bits & HAL_RX_FILTER_PHYRADAR) {
sys/dev/ath/ath_hal/ar5210/ar5210_recv.c
171
bits = (bits &~ HAL_RX_FILTER_PHYRADAR) | AR_RX_FILTER_PROMISCUOUS;
sys/dev/ath/ath_hal/ar5210/ar5210_recv.c
173
OS_REG_WRITE(ah, AR_RX_FILTER, bits);
sys/dev/ath/ath_hal/ar5211/ar5211_recv.c
167
ar5211SetRxFilter(struct ath_hal *ah, uint32_t bits)
sys/dev/ath/ath_hal/ar5211/ar5211_recv.c
169
OS_REG_WRITE(ah, AR_RX_FILTER, bits);
sys/dev/ath/ath_hal/ar5212/ar5212.h
549
extern void ar5212SetRxFilter(struct ath_hal *ah, uint32_t bits);
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
187
uint32_t bits;
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
189
bits = OS_REG_READ(ah, AR_PCICFG);
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
198
bits = (bits &~ AR_PCICFG_LEDMODE)
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
205
bits = (bits &~ AR_PCICFG_LEDCTL)
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
207
OS_REG_WRITE(ah, AR_PCICFG, bits);
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
169
uint32_t bits = OS_REG_READ(ah, AR_RX_FILTER);
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
172
bits |= HAL_RX_FILTER_PHYRADAR;
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
174
bits |= HAL_RX_FILTER_PHYERR;
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
177
bits |= HAL_RX_FILTER_BSSID;
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
178
return bits;
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
185
ar5212SetRxFilter(struct ath_hal *ah, uint32_t bits)
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
191
bits &~ (HAL_RX_FILTER_PHYRADAR|HAL_RX_FILTER_PHYERR|
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
194
if (bits & HAL_RX_FILTER_PHYRADAR)
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
196
if (bits & HAL_RX_FILTER_PHYERR)
sys/dev/ath/ath_hal/ar5212/ar5212_recv.c
207
if (bits & HAL_RX_FILTER_BSSID)
sys/dev/ath/ath_hal/ar5416/ar5416.h
288
extern void ar5416SetRxFilter(struct ath_hal *ah, uint32_t bits);
sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c
184
uint32_t bits;
sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c
193
bits = MS(OS_REG_READ(ah, AR_GPIO_IN_OUT), AR9287_GPIO_IN_VAL);
sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c
195
bits = MS(OS_REG_READ(ah, AR_GPIO_IN_OUT), AR9285_GPIO_IN_VAL);
sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c
197
bits = MS(OS_REG_READ(ah, AR_GPIO_IN_OUT), AR928X_GPIO_IN_VAL);
sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c
199
bits = MS(OS_REG_READ(ah, AR_GPIO_IN_OUT), AR_GPIO_IN_VAL);
sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c
200
return ((bits & AR_GPIO_BIT(gpio)) != 0);
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
35
uint32_t bits = OS_REG_READ(ah, AR_RX_FILTER);
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
39
bits |= HAL_RX_FILTER_PHYRADAR;
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
41
bits |= HAL_RX_FILTER_PHYERR;
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
42
return bits;
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
49
ar5416SetRxFilter(struct ath_hal *ah, u_int32_t bits)
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
53
OS_REG_WRITE(ah, AR_RX_FILTER, (bits & 0xffff));
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
55
if (bits & HAL_RX_FILTER_PHYRADAR)
sys/dev/ath/ath_hal/ar5416/ar5416_recv.c
57
if (bits & HAL_RX_FILTER_PHYERR)
sys/dev/axgbe/xgbe-dev.c
807
int i, bits;
sys/dev/axgbe/xgbe-dev.c
809
bits = get_bitmask_order(VLAN_VID_MASK);
sys/dev/axgbe/xgbe-dev.c
810
for (i = 0; i < bits; i++) {
sys/dev/bhnd/cores/chipc/chipc_spi.h
87
#define SPI_SET_BITS(sc, reg, bits) \
sys/dev/bhnd/cores/chipc/chipc_spi.h
88
SPI_WRITE(sc, reg, SPI_READ(sc, (reg)) | (bits))
sys/dev/bhnd/cores/chipc/chipc_spi.h
90
#define SPI_CLEAR_BITS(sc, reg, bits) \
sys/dev/bhnd/cores/chipc/chipc_spi.h
91
SPI_WRITE(sc, reg, SPI_READ(sc, (reg)) & ~(bits))
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
239
u_long repeat, bits;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
254
bits = 32;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
441
bits = 16;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
442
} else if (lenc == *p && bits == 16) {
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
444
bits = 8;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
456
bits = 32;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
457
} else if (lenc == *p && bits == 32) {
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
459
bits = 64;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
477
bits = 64;
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
495
bits = strtoul(p, &endp, 10);
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
649
switch (bits) {
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
664
"%lu\n", bits);
sys/dev/bwi/bwimac.c
1087
uint32_t filt, bits;
sys/dev/bwi/bwimac.c
1096
bits = 0xf;
sys/dev/bwi/bwimac.c
1099
bits |= 0x60;
sys/dev/bwi/bwimac.c
1104
bits |= 0x200;
sys/dev/bwi/bwimac.c
1112
CSR_FILT_SETBITS_4(sc, BWI_GPIO_CTRL, filt, bits);
sys/dev/bwi/bwimac.h
100
HFLAGS_WRITE((mac), HFLAGS_READ((mac)) & ~(bits))
sys/dev/bwi/bwimac.h
82
#define MOBJ_SETBITS_4(mac, objid, ofs, bits) \
sys/dev/bwi/bwimac.h
84
MOBJ_READ_4((mac), (objid), (ofs)) | (bits))
sys/dev/bwi/bwimac.h
85
#define MOBJ_CLRBITS_4(mac, objid, ofs, bits) \
sys/dev/bwi/bwimac.h
87
MOBJ_READ_4((mac), (objid), (ofs)) & ~(bits))
sys/dev/bwi/bwimac.h
89
#define MOBJ_FILT_SETBITS_2(mac, objid, ofs, filt, bits) \
sys/dev/bwi/bwimac.h
91
(MOBJ_READ_2((mac), (objid), (ofs)) & (filt)) | (bits))
sys/dev/bwi/bwimac.h
97
#define HFLAGS_CLRBITS(mac, bits) \
sys/dev/bwi/bwimac.h
98
HFLAGS_WRITE((mac), HFLAGS_READ((mac)) | (bits))
sys/dev/bwi/bwimac.h
99
#define HFLAGS_SETBITS(mac, bits) \
sys/dev/bwi/bwiphy.h
70
#define PHY_SETBITS(mac, ctrl, bits) \
sys/dev/bwi/bwiphy.h
71
PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits))
sys/dev/bwi/bwiphy.h
72
#define PHY_CLRBITS(mac, ctrl, bits) \
sys/dev/bwi/bwiphy.h
73
PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) & ~(bits))
sys/dev/bwi/bwiphy.h
74
#define PHY_FILT_SETBITS(mac, ctrl, filt, bits) \
sys/dev/bwi/bwiphy.h
75
PHY_WRITE((mac), (ctrl), (PHY_READ((mac), (ctrl)) & (filt)) | (bits))
sys/dev/bwi/bwirf.h
115
#define RF_SETBITS(mac, ofs, bits) \
sys/dev/bwi/bwirf.h
116
RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) | (bits))
sys/dev/bwi/bwirf.h
117
#define RF_CLRBITS(mac, ofs, bits) \
sys/dev/bwi/bwirf.h
118
RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) & ~(bits))
sys/dev/bwi/bwirf.h
119
#define RF_FILT_SETBITS(mac, ofs, filt, bits) \
sys/dev/bwi/bwirf.h
120
RF_WRITE((mac), (ofs), (RF_READ((mac), (ofs)) & (filt)) | (bits))
sys/dev/bwi/if_bwivar.h
86
#define CSR_SETBITS_4(sc, reg, bits) \
sys/dev/bwi/if_bwivar.h
87
CSR_WRITE_4((sc), (reg), CSR_READ_4((sc), (reg)) | (bits))
sys/dev/bwi/if_bwivar.h
88
#define CSR_SETBITS_2(sc, reg, bits) \
sys/dev/bwi/if_bwivar.h
89
CSR_WRITE_2((sc), (reg), CSR_READ_2((sc), (reg)) | (bits))
sys/dev/bwi/if_bwivar.h
91
#define CSR_FILT_SETBITS_4(sc, reg, filt, bits) \
sys/dev/bwi/if_bwivar.h
92
CSR_WRITE_4((sc), (reg), (CSR_READ_4((sc), (reg)) & (filt)) | (bits))
sys/dev/bwi/if_bwivar.h
93
#define CSR_FILT_SETBITS_2(sc, reg, filt, bits) \
sys/dev/bwi/if_bwivar.h
94
CSR_WRITE_2((sc), (reg), (CSR_READ_2((sc), (reg)) & (filt)) | (bits))
sys/dev/bwi/if_bwivar.h
96
#define CSR_CLRBITS_4(sc, reg, bits) \
sys/dev/bwi/if_bwivar.h
97
CSR_WRITE_4((sc), (reg), CSR_READ_4((sc), (reg)) & ~(bits))
sys/dev/bwi/if_bwivar.h
98
#define CSR_CLRBITS_2(sc, reg, bits) \
sys/dev/bwi/if_bwivar.h
99
CSR_WRITE_2((sc), (reg), CSR_READ_2((sc), (reg)) & ~(bits))
sys/dev/bxe/bxe_dcb.h
197
#define GET_FLAGS(flags, bits) ((flags) & (bits))
sys/dev/bxe/bxe_dcb.h
198
#define SET_FLAGS(flags, bits) ((flags) |= (bits))
sys/dev/bxe/bxe_dcb.h
199
#define RESET_FLAGS(flags, bits) ((flags) &= ~(bits))
sys/dev/bxe/bxe_elink.c
951
static uint32_t elink_bits_en(struct bxe_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/bxe/bxe_elink.c
955
val |= bits;
sys/dev/bxe/bxe_elink.c
960
static uint32_t elink_bits_dis(struct bxe_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/bxe/bxe_elink.c
964
val &= ~bits;
sys/dev/bxe/ecore_init.h
728
uint32_t bits;
sys/dev/cas/if_casreg.h
1011
#define CAS_GET(reg, bits) (((reg) & (bits ## _MASK)) >> (bits ## _SHFT))
sys/dev/cas/if_casreg.h
1012
#define CAS_SET(val, bits) (((val) << (bits ## _SHFT)) & (bits ## _MASK))
sys/dev/cxgbe/t4_main.c
8937
static char *bits = "\20\1RX\2TX\3AUTO";
sys/dev/cxgbe/t4_main.c
8945
(lc->requested_fc & PAUSE_AUTONEG), bits);
sys/dev/cxgbe/t4_main.c
8948
PAUSE_RX | PAUSE_AUTONEG), bits);
sys/dev/dc/if_dc.c
1733
dc_read_srom(struct dc_softc *sc, int bits)
sys/dev/dc/if_dc.c
1737
size = DC_ROM_SIZE(bits);
sys/dev/dc/if_dcreg.h
1093
#define DC_ROM_SIZE(bits) (2 << (bits))
sys/dev/drm2/drm_bufs.c
173
int bits = ilog2(SHMLBA >> PAGE_SHIFT) + 1;
sys/dev/drm2/drm_bufs.c
187
shift = bits;
sys/dev/drm2/drm_bufs.c
188
add |= ((user_token >> PAGE_SHIFT) & ((1UL << bits) - 1UL));
sys/dev/drm2/drm_hashtab.c
121
unsigned long seed, int bits, int shift,
sys/dev/drm2/drm_hashtab.c
125
unsigned long mask = (1 << bits) - 1;
sys/dev/drm2/drm_hashtab.h
57
unsigned long seed, int bits, int shift,
sys/dev/fb/vesa.c
1442
int bits;
sys/dev/fb/vesa.c
1445
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
sys/dev/fb/vesa.c
1446
if (vesa_bios_save_palette(0, 256, palette, bits) == 0)
sys/dev/fb/vesa.c
1456
int bits;
sys/dev/fb/vesa.c
1459
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
sys/dev/fb/vesa.c
1460
if (vesa_bios_load_palette(0, 256, palette, bits) == 0)
sys/dev/fb/vesa.c
1685
int bits;
sys/dev/fb/vesa.c
1695
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
sys/dev/fb/vesa.c
1699
error = vesa_bios_save_palette2(base, count, r, g, b, bits);
sys/dev/fb/vesa.c
1721
int bits;
sys/dev/fb/vesa.c
1731
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
sys/dev/fb/vesa.c
1742
error = vesa_bios_load_palette2(base, count, r, g, b, bits);
sys/dev/fb/vesa.c
199
static int vesa_bios_set_dac(int bits);
sys/dev/fb/vesa.c
201
int bits);
sys/dev/fb/vesa.c
203
u_char *b, int bits);
sys/dev/fb/vesa.c
205
int bits);
sys/dev/fb/vesa.c
207
u_char *b, int bits);
sys/dev/fb/vesa.c
368
vesa_bios_set_dac(int bits)
sys/dev/fb/vesa.c
375
regs.R_BH = bits;
sys/dev/fb/vesa.c
386
vesa_bios_save_palette(int start, int colors, u_char *palette, int bits)
sys/dev/fb/vesa.c
400
bits = 8 - bits;
sys/dev/fb/vesa.c
408
palette[i * 3] = vesa_palette[i * 4 + 2] << bits;
sys/dev/fb/vesa.c
409
palette[i * 3 + 1] = vesa_palette[i * 4 + 1] << bits;
sys/dev/fb/vesa.c
410
palette[i * 3 + 2] = vesa_palette[i * 4] << bits;
sys/dev/fb/vesa.c
419
int bits)
sys/dev/fb/vesa.c
433
bits = 8 - bits;
sys/dev/fb/vesa.c
441
r[i] = vesa_palette[i * 4 + 2] << bits;
sys/dev/fb/vesa.c
442
g[i] = vesa_palette[i * 4 + 1] << bits;
sys/dev/fb/vesa.c
443
b[i] = vesa_palette[i * 4] << bits;
sys/dev/fb/vesa.c
451
vesa_bios_load_palette(int start, int colors, u_char *palette, int bits)
sys/dev/fb/vesa.c
465
bits = 8 - bits;
sys/dev/fb/vesa.c
468
vesa_palette[i * 4] = palette[i * 3 + 2] >> bits;
sys/dev/fb/vesa.c
469
vesa_palette[i * 4 + 1] = palette[i * 3 + 1] >> bits;
sys/dev/fb/vesa.c
470
vesa_palette[i * 4 + 2] = palette[i * 3] >> bits;
sys/dev/fb/vesa.c
481
int bits)
sys/dev/fb/vesa.c
495
bits = 8 - bits;
sys/dev/fb/vesa.c
498
vesa_palette[i * 4] = b[i] >> bits;
sys/dev/fb/vesa.c
499
vesa_palette[i * 4 + 1] = g[i] >> bits;
sys/dev/fb/vesa.c
500
vesa_palette[i * 4 + 2] = r[i] >> bits;
sys/dev/fb/vga.c
1978
int bits;
sys/dev/fb/vga.c
1988
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 0 : 2;
sys/dev/fb/vga.c
1990
palette[i] = inb(PALDATA) << bits;
sys/dev/fb/vga.c
1999
int bits;
sys/dev/fb/vga.c
2005
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 0 : 2;
sys/dev/fb/vga.c
2007
r[i] = inb(PALDATA) << bits;
sys/dev/fb/vga.c
2008
g[i] = inb(PALDATA) << bits;
sys/dev/fb/vga.c
2009
b[i] = inb(PALDATA) << bits;
sys/dev/fb/vga.c
2024
int bits;
sys/dev/fb/vga.c
2031
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 0 : 2;
sys/dev/fb/vga.c
2033
outb(PALDATA, palette[i] >> bits);
sys/dev/fb/vga.c
2043
int bits;
sys/dev/fb/vga.c
2050
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 0 : 2;
sys/dev/fb/vga.c
2052
outb(PALDATA, r[i] >> bits);
sys/dev/fb/vga.c
2053
outb(PALDATA, g[i] >> bits);
sys/dev/fb/vga.c
2054
outb(PALDATA, b[i] >> bits);
sys/dev/hyperv/pcib/vmbus_pcib.c
230
} bits;
sys/dev/hyperv/pcib/vmbus_pcib.c
494
wslot.bits.slot = PCI_SLOT(devfn);
sys/dev/hyperv/pcib/vmbus_pcib.c
495
wslot.bits.func = PCI_FUNC(devfn);
sys/dev/hyperv/pcib/vmbus_pcib.c
509
slot = encoding.bits.slot;
sys/dev/hyperv/pcib/vmbus_pcib.c
510
func = encoding.bits.func;
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1755
uint64_t *bits)
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1768
*bits = 0;
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1812
*bits = tmp_bits;
sys/dev/iicbus/controller/qcom/geni_iic.c
224
geniiic_wait_m_ireq(geniiic_softc_t *sc, uint32_t bits)
sys/dev/iicbus/controller/qcom/geni_iic.c
231
if (status & bits) {
sys/dev/irdma/irdma_defs.h
350
#define LS_64_1(val, bits) ((u64)(uintptr_t)(val) << (bits))
sys/dev/irdma/irdma_defs.h
351
#define RS_64_1(val, bits) ((u64)(uintptr_t)(val) >> (bits))
sys/dev/irdma/irdma_defs.h
352
#define LS_32_1(val, bits) ((u32)((val) << (bits)))
sys/dev/irdma/irdma_defs.h
353
#define RS_32_1(val, bits) ((u32)((val) >> (bits)))
sys/dev/isci/scil/intel_sas.h
110
} bits;
sys/dev/isci/scil/intel_sas.h
180
} bits;
sys/dev/isci/scil/intel_sas.h
684
} bits;
sys/dev/isci/scil/scic_sds_controller.h
578
(device)->target_protocols.u.bits.attached_stp_target \
sys/dev/isci/scil/scic_sds_phy.c
199
phy_capabilities.u.bits.start = 1;
sys/dev/isci/scil/scic_sds_phy.c
200
phy_capabilities.u.bits.gen3_without_ssc_supported = 1;
sys/dev/isci/scil/scic_sds_phy.c
201
phy_capabilities.u.bits.gen2_without_ssc_supported = 1;
sys/dev/isci/scil/scic_sds_phy.c
202
phy_capabilities.u.bits.gen1_without_ssc_supported = 1;
sys/dev/isci/scil/scic_sds_phy.c
272
phy_capabilities.u.bits.gen3_with_ssc_supported = 1;
sys/dev/isci/scil/scic_sds_phy.c
273
phy_capabilities.u.bits.gen2_with_ssc_supported = 1;
sys/dev/isci/scil/scic_sds_phy.c
274
phy_capabilities.u.bits.gen1_with_ssc_supported = 1;
sys/dev/isci/scil/scic_sds_phy.c
313
phy_capabilities.u.bits.parity = 1;
sys/dev/isci/scil/scic_sds_phy.c
3224
if (identify_frame->protocols.u.bits.smp_target)
sys/dev/isci/scil/scic_sds_phy.c
909
protocols->u.bits.smp_target = 1;
sys/dev/isci/scil/scic_sds_phy.c
912
protocols->u.bits.stp_target = 1;
sys/dev/isci/scil/scic_sds_phy.c
915
protocols->u.bits.ssp_target = 1;
sys/dev/isci/scil/scic_sds_phy.c
918
protocols->u.bits.smp_initiator = 1;
sys/dev/isci/scil/scic_sds_phy.c
921
protocols->u.bits.stp_initiator = 1;
sys/dev/isci/scil/scic_sds_phy.c
924
protocols->u.bits.ssp_initiator = 1;
sys/dev/isci/scil/scic_sds_phy.c
968
protocols->u.bits.stp_target = 1;
sys/dev/isci/scil/scic_sds_port.c
1097
if (!protocols.u.bits.stp_target)
sys/dev/isci/scil/scic_sds_port.c
1241
&& (protocols.u.bits.stp_target)
sys/dev/isci/scil/scic_sds_port.c
527
if (!protocols.u.bits.stp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
189
if (this_device->target_protocols.u.bits.attached_ssp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
193
else if (this_device->target_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
204
else if (this_device->target_protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
283
if (this_device->target_protocols.u.bits.attached_ssp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
287
else if (this_device->target_protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
299
else if (this_device->target_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
528
if (this_device->target_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_remote_device.c
901
if (!this_device->target_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_remote_node_context.c
1182
&& this_rnc->device->target_protocols.u.bits.attached_stp_target
sys/dev/isci/scil/scic_sds_remote_node_context.c
1347
(protocols.u.bits.attached_stp_target == 1)
sys/dev/isci/scil/scic_sds_remote_node_context.c
203
this_rnc->device->target_protocols.u.bits.attached_sata_device
sys/dev/isci/scil/scic_sds_remote_node_context.c
204
|| this_rnc->device->target_protocols.u.bits.attached_stp_target
sys/dev/isci/scil/scic_sds_remote_node_context.c
873
(protocols.u.bits.attached_stp_target == 1)
sys/dev/isci/scil/scic_sds_request.c
1074
if (device_protocol.u.bits.attached_ssp_target)
sys/dev/isci/scil/scic_sds_request.c
1078
else if (device_protocol.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_request.c
1083
else if (device_protocol.u.bits.attached_smp_target)
sys/dev/isci/scil/scic_sds_request.c
1146
if (device_protocol.u.bits.attached_ssp_target)
sys/dev/isci/scil/scic_sds_request.c
1160
else if (device_protocol.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_smp_request.c
579
if (this_smp_response->response.discover.protocols.u.bits.attached_sata_device
sys/dev/isci/scil/scic_sds_smp_request.c
580
&& !this_smp_response->response.discover.protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scic_sds_smp_request.c
582
this_smp_response->response.discover.protocols.u.bits.attached_stp_target = 1;
sys/dev/isci/scil/scif_sas_domain.c
1249
if (dev_protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scif_sas_domain.c
1346
if ( dev_protocols.u.bits.attached_smp_target )
sys/dev/isci/scil/scif_sas_domain.c
1488
if (dev_protocols.u.bits.attached_ssp_target)
sys/dev/isci/scil/scif_sas_domain.c
788
if ( dev_protocols.u.bits.attached_smp_target )
sys/dev/isci/scil/scif_sas_domain.c
838
if (dev_protocols.u.bits.attached_smp_target &&
sys/dev/isci/scil/scif_sas_domain.c
975
if ( dev_protocols.u.bits.attached_smp_target
sys/dev/isci/scil/scif_sas_domain_states.c
534
if(properties.remote.protocols.u.bits.smp_target)
sys/dev/isci/scil/scif_sas_io_request.c
109
if (dev_protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scif_sas_io_request.c
150
if (dev_protocols.u.bits.attached_ssp_target)
sys/dev/isci/scil/scif_sas_io_request.c
152
else if (dev_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scif_sas_io_request.c
670
if (dev_protocols.u.bits.attached_stp_target
sys/dev/isci/scil/scif_sas_remote_device.c
217
if (protocols->u.bits.stp_target)
sys/dev/isci/scil/scif_sas_remote_device.c
219
else if (protocols->u.bits.smp_target)
sys/dev/isci/scil/scif_sas_remote_device.c
293
if (smp_response->protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scif_sas_remote_device.c
295
else if (smp_response->protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scif_sas_remote_device.c
465
if (protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scif_sas_remote_device_ready_substate_handlers.c
408
if ( dev_protocols.u.bits.attached_ssp_target
sys/dev/isci/scil/scif_sas_remote_device_ready_substate_handlers.c
409
|| dev_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scif_sas_remote_device_ready_substate_handlers.c
431
ASSERT(!dev_protocols.u.bits.attached_stp_target);
sys/dev/isci/scil/scif_sas_remote_device_ready_substate_handlers.c
527
if (dev_protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c
138
if(dev_protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scif_sas_smp_activity_clear_affiliation.c
108
if (dev_protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scif_sas_smp_remote_device.c
1940
if ( discover_response->protocols.u.bits.attached_smp_target )
sys/dev/isci/scil/scif_sas_smp_remote_device.c
461
&& ( discover_response->protocols.u.bits.attached_ssp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
462
|| discover_response->protocols.u.bits.attached_stp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
463
|| discover_response->protocols.u.bits.attached_smp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
464
|| discover_response->protocols.u.bits.attached_sata_device ) )
sys/dev/isci/scil/scif_sas_smp_remote_device.c
493
&& discover_response->protocols.u.bits.attached_ssp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
501
if ( discover_response->protocols.u.bits.attached_smp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
519
if ( discover_response->protocols.u.bits.attached_ssp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
520
|| discover_response->protocols.u.bits.attached_smp_target)
sys/dev/isci/scil/scif_sas_smp_remote_device.c
525
else if ( (discover_response->protocols.u.bits.attached_stp_target)
sys/dev/isci/scil/scif_sas_smp_remote_device.c
526
|| (discover_response->protocols.u.bits.attached_sata_device) )
sys/dev/isci/scil/scif_sas_smp_remote_device.c
530
discover_response->protocols.u.bits.attached_stp_target = 1;
sys/dev/isci/scil/scif_sas_smp_remote_device.c
540
&&(discover_response->protocols.u.bits.attached_stp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
541
|| discover_response->protocols.u.bits.attached_sata_device)
sys/dev/isci/scil/scif_sas_smp_remote_device.c
563
discover_response->protocols.u.bits.attached_stp_target = 1;
sys/dev/isci/scil/scif_sas_smp_remote_device.c
844
&& ( discover_response->protocols.u.bits.attached_stp_target
sys/dev/isci/scil/scif_sas_smp_remote_device.c
845
||discover_response->protocols.u.bits.attached_sata_device )
sys/dev/isci/scil/scif_sas_task_request.c
202
if (dev_protocols.u.bits.attached_ssp_target)
sys/dev/isci/scil/scif_sas_task_request.c
204
else if (dev_protocols.u.bits.attached_stp_target)
sys/dev/iwm/if_iwm_pcie_trans.c
194
iwm_poll_prph(struct iwm_softc *sc, uint32_t addr, uint32_t bits, uint32_t mask,
sys/dev/iwm/if_iwm_pcie_trans.c
198
if ((iwm_read_prph(sc, addr) & mask) == (bits & mask))
sys/dev/iwm/if_iwm_pcie_trans.c
258
uint32_t bits, uint32_t mask, int timo)
sys/dev/iwm/if_iwm_pcie_trans.c
261
if ((IWM_READ(sc, reg) & mask) == (bits & mask)) {
sys/dev/iwm/if_iwm_pcie_trans.c
313
uint32_t reg, uint32_t bits, uint32_t mask)
sys/dev/iwm/if_iwm_pcie_trans.c
320
val |= bits;
sys/dev/iwm/if_iwm_pcie_trans.c
327
iwm_set_bits_prph(struct iwm_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/iwm/if_iwm_pcie_trans.c
329
iwm_set_bits_mask_prph(sc, reg, bits, ~0);
sys/dev/iwm/if_iwm_pcie_trans.c
333
iwm_clear_bits_prph(struct iwm_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/iwm/if_iwm_pcie_trans.c
335
iwm_set_bits_mask_prph(sc, reg, 0, ~bits);
sys/dev/iwm/if_iwm_pcie_trans.h
110
extern int iwm_poll_prph(struct iwm_softc *sc, uint32_t addr, uint32_t bits,
sys/dev/iwm/if_iwm_pcie_trans.h
117
uint32_t bits, uint32_t mask, int timo);
sys/dev/iwm/if_iwm_pcie_trans.h
121
uint32_t reg, uint32_t bits, uint32_t mask);
sys/dev/iwm/if_iwm_pcie_trans.h
122
extern void iwm_set_bits_prph(struct iwm_softc *sc, uint32_t reg, uint32_t bits);
sys/dev/iwm/if_iwm_pcie_trans.h
123
extern void iwm_clear_bits_prph(struct iwm_softc *sc, uint32_t reg, uint32_t bits);
sys/dev/iwx/if_iwx.c
1834
iwx_poll_bit(struct iwx_softc *sc, int reg, uint32_t bits, uint32_t mask,
sys/dev/iwx/if_iwx.c
1838
if ((IWX_READ(sc, reg) & mask) == (bits & mask)) {
sys/dev/iwx/if_iwx.c
1894
iwx_set_bits_mask_prph(struct iwx_softc *sc, uint32_t reg, uint32_t bits,
sys/dev/iwx/if_iwx.c
1901
val |= bits;
sys/dev/iwx/if_iwx.c
1910
iwx_set_bits_prph(struct iwx_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/iwx/if_iwx.c
1912
return iwx_set_bits_mask_prph(sc, reg, bits, ~0);
sys/dev/iwx/if_iwx.c
1916
iwx_clear_bits_prph(struct iwx_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/iwx/if_iwx.c
1918
return iwx_set_bits_mask_prph(sc, reg, 0, ~bits);
sys/dev/ixgbe/ixgbe_82598.c
1009
u32 bits;
sys/dev/ixgbe/ixgbe_82598.c
1027
bits = IXGBE_READ_REG(hw, IXGBE_VFTAVIND(vftabyte, regindex));
sys/dev/ixgbe/ixgbe_82598.c
1028
bits &= (~(0x0F << bitindex));
sys/dev/ixgbe/ixgbe_82598.c
1029
bits |= (vind << bitindex);
sys/dev/ixgbe/ixgbe_82598.c
1030
IXGBE_WRITE_REG(hw, IXGBE_VFTAVIND(vftabyte, regindex), bits);
sys/dev/ixgbe/ixgbe_82598.c
1035
bits = IXGBE_READ_REG(hw, IXGBE_VFTA(regindex));
sys/dev/ixgbe/ixgbe_82598.c
1038
bits |= (1 << bitindex);
sys/dev/ixgbe/ixgbe_82598.c
1041
bits &= ~(1 << bitindex);
sys/dev/ixgbe/ixgbe_82598.c
1042
IXGBE_WRITE_REG(hw, IXGBE_VFTA(regindex), bits);
sys/dev/ixgbe/ixgbe_common.c
3939
u32 bits;
sys/dev/ixgbe/ixgbe_common.c
3960
bits = IXGBE_READ_REG(hw, IXGBE_VLVF(regindex));
sys/dev/ixgbe/ixgbe_common.c
3961
if (bits == vlan)
sys/dev/ixgbe/ixgbe_common.c
3963
if (!first_empty_slot && !bits)
sys/dev/ixgbe/ixgbe_common.c
4057
u32 bits;
sys/dev/ixgbe/ixgbe_common.c
4079
bits = IXGBE_READ_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32));
sys/dev/ixgbe/ixgbe_common.c
4082
bits |= 1 << (vind % 32);
sys/dev/ixgbe/ixgbe_common.c
4087
bits ^= 1 << (vind % 32);
sys/dev/ixgbe/ixgbe_common.c
4089
if (!bits &&
sys/dev/ixgbe/ixgbe_common.c
4123
IXGBE_WRITE_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32), bits);
sys/dev/mgb/if_mgb.h
236
#define CSR_CLEAR_REG(sc, reg, bits) \
sys/dev/mgb/if_mgb.h
237
CSR_WRITE_REG(sc, reg, CSR_READ_REG(sc, reg) & ~(bits))
sys/dev/mlx4/device.h
657
unsigned long *bits[2];
sys/dev/mlx4/mlx4_core/mlx4.h
254
unsigned long **bits;
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
688
pgdir->bits[0] = pgdir->order0;
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
689
pgdir->bits[1] = pgdir->order1;
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
707
i = find_first_bit(pgdir->bits[o], MLX4_DB_PER_PAGE >> o);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
715
clear_bit(i, pgdir->bits[o]);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
720
set_bit(i ^ 1, pgdir->bits[order]);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
777
set_bit(i, db->u.pgdir->bits[o]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
112
buddy->bits = kcalloc(buddy->max_order + 1, sizeof (long *),
sys/dev/mlx4/mlx4_core/mlx4_mr.c
116
if (!buddy->bits || !buddy->num_free)
sys/dev/mlx4/mlx4_core/mlx4_mr.c
121
buddy->bits[i] = kcalloc(s, sizeof (long), GFP_KERNEL | __GFP_NOWARN);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
122
if (!buddy->bits[i]) {
sys/dev/mlx4/mlx4_core/mlx4_mr.c
123
buddy->bits[i] = vzalloc(s * sizeof(long));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
124
if (!buddy->bits[i])
sys/dev/mlx4/mlx4_core/mlx4_mr.c
129
set_bit(0, buddy->bits[buddy->max_order]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
136
kvfree(buddy->bits[i]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
139
kfree(buddy->bits);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
150
kvfree(buddy->bits[i]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
152
kfree(buddy->bits);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
60
seg = find_first_bit(buddy->bits[o], m);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
69
clear_bit(seg, buddy->bits[o]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
75
set_bit(seg ^ 1, buddy->bits[o]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
92
while (test_bit(seg ^ 1, buddy->bits[order])) {
sys/dev/mlx4/mlx4_core/mlx4_mr.c
93
clear_bit(seg ^ 1, buddy->bits[order]);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
99
set_bit(seg, buddy->bits[order]);
sys/dev/mmc/mmc.c
1080
mmc_get_bits(uint32_t *bits, int bit_len, int start, int size)
sys/dev/mmc/mmc.c
1084
uint32_t retval = bits[i] >> shift;
sys/dev/mmc/mmc.c
1087
retval |= bits[i - 1] << (32 - shift);
sys/dev/mmc/mmc.c
187
static uint32_t mmc_get_bits(uint32_t *bits, int bit_len, int start,
sys/dev/mpr/mpr_ioctl.h
130
} bits;
sys/dev/mpr/mpr_user.c
1180
data->PciInformation.u.bits.BusNumber = pci_get_bus(sc->mpr_dev);
sys/dev/mpr/mpr_user.c
1181
data->PciInformation.u.bits.DeviceNumber = pci_get_slot(sc->mpr_dev);
sys/dev/mpr/mpr_user.c
1182
data->PciInformation.u.bits.FunctionNumber =
sys/dev/mps/mps_ioctl.h
131
} bits;
sys/dev/mps/mps_user.c
1071
data->PciInformation.u.bits.BusNumber = pci_get_bus(sc->mps_dev);
sys/dev/mps/mps_user.c
1072
data->PciInformation.u.bits.DeviceNumber = pci_get_slot(sc->mps_dev);
sys/dev/mps/mps_user.c
1073
data->PciInformation.u.bits.FunctionNumber =
sys/dev/mrsas/mrsas.h
235
} bits;
sys/dev/mrsas/mrsas.h
3103
} bits;
sys/dev/mrsas/mrsas.h
3129
} bits;
sys/dev/mrsas/mrsas_cam.c
1073
io_request->RaidContext.raid_context_g35.routingFlags.bits.sqn = 1;
sys/dev/mrsas/mrsas_cam.c
1075
if (io_request->RaidContext.raid_context_g35.routingFlags.bits.sld) {
sys/dev/mrsas/mrsas_cam.c
1121
io_request->RaidContext.raid_context_g35.routingFlags.bits.sqn = 1;
sys/dev/mrsas/mrsas_cam.c
1233
io_request->RaidContext.raid_context_g35.routingFlags.bits.sqn = 1;
sys/dev/mrsas/mrsas_fp.c
1187
((RAID_CONTEXT_G35 *) pRAID_Context)->routingFlags.bits.sld = 1;
sys/dev/mthca/mthca_dev.h
207
unsigned long **bits;
sys/dev/mthca/mthca_mr.c
104
clear_bit(seg, buddy->bits[o]);
sys/dev/mthca/mthca_mr.c
110
set_bit(seg ^ 1, buddy->bits[o]);
sys/dev/mthca/mthca_mr.c
127
while (test_bit(seg ^ 1, buddy->bits[order])) {
sys/dev/mthca/mthca_mr.c
128
clear_bit(seg ^ 1, buddy->bits[order]);
sys/dev/mthca/mthca_mr.c
134
set_bit(seg, buddy->bits[order]);
sys/dev/mthca/mthca_mr.c
147
buddy->bits = kzalloc((buddy->max_order + 1) * sizeof (long *),
sys/dev/mthca/mthca_mr.c
151
if (!buddy->bits || !buddy->num_free)
sys/dev/mthca/mthca_mr.c
156
buddy->bits[i] = kmalloc(s * sizeof (long), GFP_KERNEL);
sys/dev/mthca/mthca_mr.c
157
if (!buddy->bits[i])
sys/dev/mthca/mthca_mr.c
159
bitmap_zero(buddy->bits[i],
sys/dev/mthca/mthca_mr.c
163
set_bit(0, buddy->bits[buddy->max_order]);
sys/dev/mthca/mthca_mr.c
170
kfree(buddy->bits[i]);
sys/dev/mthca/mthca_mr.c
173
kfree(buddy->bits);
sys/dev/mthca/mthca_mr.c
184
kfree(buddy->bits[i]);
sys/dev/mthca/mthca_mr.c
186
kfree(buddy->bits);
sys/dev/mthca/mthca_mr.c
95
seg = find_first_bit(buddy->bits[o], m);
sys/dev/netmap/netmap.c
2286
uint64_t mask = 0, bits = 0, maxbits = sizeof(uint64_t) * 8,
sys/dev/netmap/netmap.c
2309
bits = opt->nro_offset_bits;
sys/dev/netmap/netmap.c
2311
if (bits > maxbits) {
sys/dev/netmap/netmap.c
2314
(unsigned long long)bits,
sys/dev/netmap/netmap.c
2320
if (bits == 0 || bits == maxbits) {
sys/dev/netmap/netmap.c
2322
bits = maxbits;
sys/dev/netmap/netmap.c
2325
mask = (1ULL << bits) - 1;
sys/dev/netmap/netmap.c
2338
(unsigned long long)bits);
sys/dev/nmdm/nmdm.c
301
int bits;
sys/dev/nmdm/nmdm.c
303
bits = 1; /* start bit */
sys/dev/nmdm/nmdm.c
305
case CS5: bits += 5; break;
sys/dev/nmdm/nmdm.c
306
case CS6: bits += 6; break;
sys/dev/nmdm/nmdm.c
307
case CS7: bits += 7; break;
sys/dev/nmdm/nmdm.c
308
case CS8: bits += 8; break;
sys/dev/nmdm/nmdm.c
310
bits++; /* stop bit */
sys/dev/nmdm/nmdm.c
312
bits++;
sys/dev/nmdm/nmdm.c
314
bits++;
sys/dev/nmdm/nmdm.c
315
return (bits);
sys/dev/ntb/ntb.c
508
ntb_db_clear(device_t ntb, uint64_t bits)
sys/dev/ntb/ntb.c
512
return (NTB_DB_CLEAR(device_get_parent(ntb), bits << nc->dboff));
sys/dev/ntb/ntb.c
516
ntb_db_clear_mask(device_t ntb, uint64_t bits)
sys/dev/ntb/ntb.c
520
return (NTB_DB_CLEAR_MASK(device_get_parent(ntb), bits << nc->dboff));
sys/dev/ntb/ntb.c
533
ntb_db_set_mask(device_t ntb, uint64_t bits)
sys/dev/ntb/ntb.c
537
return (NTB_DB_SET_MASK(device_get_parent(ntb), bits << nc->dboff));
sys/dev/ntb/ntb.c
541
ntb_peer_db_set(device_t ntb, uint64_t bits)
sys/dev/ntb/ntb.c
545
return (NTB_PEER_DB_SET(device_get_parent(ntb), bits << nc->dboff));
sys/dev/ntb/ntb.h
403
void ntb_db_clear(device_t ntb, uint64_t bits);
sys/dev/ntb/ntb.h
419
void ntb_db_clear_mask(device_t ntb, uint64_t bits);
sys/dev/ntb/ntb.h
442
void ntb_db_set_mask(device_t ntb, uint64_t bits);
sys/dev/ntb/ntb.h
452
void ntb_peer_db_set(device_t ntb, uint64_t bits);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1453
intel_ntb_db_set_mask(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1458
ntb->db_mask |= bits;
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1465
intel_ntb_db_clear_mask(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1471
KASSERT((bits & ~ntb->db_valid_mask) == 0,
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1473
(uintmax_t)(bits & ~ntb->db_valid_mask),
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1477
ibits = ntb->fake_db & ntb->db_mask & bits;
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1478
ntb->db_mask &= ~bits;
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1506
intel_ntb_db_clear(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1510
KASSERT((bits & ~ntb->db_valid_mask) == 0,
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1512
(uintmax_t)(bits & ~ntb->db_valid_mask),
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1517
ntb->fake_db &= ~bits;
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1524
(uint32_t)bits);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1526
db_iowrite(ntb, ntb->self_reg->db_bell, bits);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3741
intel_ntb_peer_db_set(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3746
if ((bits & ~ntb->db_valid_mask) != 0) {
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3748
(uintmax_t)bits);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3759
if ((bits & intel_ntb_db_vector_mask(dev, i)) != 0)
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3769
intel_ntb_mw_write(2, XEON_PDOORBELL_OFFSET, bits);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3774
while (bits != 0) {
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3775
db = ffsll(bits);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3780
bits = bits & (bits - 1);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
3783
db_iowrite(ntb, ntb->peer_reg->db_bell, bits);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
1002
ntb_plx_db_clear(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
1006
NTX_WRITE(sc, sc->link ? 0xc60 : 0xc50, bits);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
1010
ntb_plx_db_clear_mask(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
1014
NTX_WRITE(sc, sc->link ? 0xc68 : 0xc58, bits);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
1026
ntb_plx_db_set_mask(device_t dev, uint64_t bits)
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
1030
NTX_WRITE(sc, sc->link ? 0xc64 : 0xc54, bits);
sys/dev/ntb/test/ntb_tool.c
1137
uint64_t bits;
sys/dev/ntb/test/ntb_tool.c
1147
sscanf(buf, "%ju", &bits);
sys/dev/ntb/test/ntb_tool.c
1148
tc->db_event_val = bits;
sys/dev/ntb/test/ntb_tool.c
1163
uint32_t bits;
sys/dev/ntb/test/ntb_tool.c
1167
rc = ntb_spad_read(tc->dev, sidx, &bits);
sys/dev/ntb/test/ntb_tool.c
1171
return read_out(req, (uint64_t )bits);
sys/dev/ntb/test/ntb_tool.c
1176
sscanf(buf, "%i", &bits);
sys/dev/ntb/test/ntb_tool.c
1177
return ntb_spad_write(tc->dev, sidx, bits);
sys/dev/ntb/test/ntb_tool.c
1189
uint32_t bits;
sys/dev/ntb/test/ntb_tool.c
1193
rc = ntb_peer_spad_read(tc->dev, sidx, &bits);
sys/dev/ntb/test/ntb_tool.c
1197
return read_out(req, (uint64_t )bits);
sys/dev/ntb/test/ntb_tool.c
1202
sscanf(buf, "%i", &bits);
sys/dev/ntb/test/ntb_tool.c
1203
return ntb_peer_spad_write(tc->dev, sidx, bits);
sys/dev/ntb/test/ntb_tool.c
410
uint64_t bits;
sys/dev/ntb/test/ntb_tool.c
421
bits = 0;
sys/dev/ntb/test/ntb_tool.c
422
sscanf(ubuf, "%c %jx", &cmd, &bits);
sys/dev/ntb/test/ntb_tool.c
424
if ((bits | db_valid_mask) > db_valid_mask) {
sys/dev/ntb/test/ntb_tool.c
425
device_printf(tc->dev, "0x%jx value is not supported\n", bits);
sys/dev/ntb/test/ntb_tool.c
429
fn_set(tc->dev, bits);
sys/dev/ntb/test/ntb_tool.c
433
*val |= bits;
sys/dev/ntb/test/ntb_tool.c
435
if ((bits | db_valid_mask) > db_valid_mask) {
sys/dev/ntb/test/ntb_tool.c
436
device_printf(tc->dev, "0x%jx value is not supported\n", bits);
sys/dev/ntb/test/ntb_tool.c
440
fn_clear(tc->dev, bits);
sys/dev/ntb/test/ntb_tool.c
442
*val &= ~bits;
sys/dev/ntb/test/ntb_tool.c
752
uint64_t bits;
sys/dev/ntb/test/ntb_tool.c
761
sscanf(buf, "0x%jx", &bits);
sys/dev/ntb/test/ntb_tool.c
762
tc->link_bits = bits;
sys/dev/nvmf/nvmf_proto.h
604
} bits;
sys/dev/nvmf/nvmf_proto.h
634
} bits;
sys/dev/oce/oce_hw.c
275
if (intf.bits.sli_valid != OCE_INTF_VALID_SIG)
sys/dev/oce/oce_hw.c
278
if (intf.bits.sli_rev != OCE_INTF_SLI_REV4) {
sys/dev/oce/oce_hw.c
283
if (intf.bits.sli_if_type == OCE_INTF_IF_TYPE_1)
sys/dev/oce/oce_hw.c
286
if (intf.bits.sli_hint1 == OCE_INTF_FUNC_RESET_REQD)
sys/dev/oce/oce_hw.c
289
if (intf.bits.sli_func_type == OCE_INTF_VIRT_FUNC)
sys/dev/oce/oce_hw.c
449
ctrl.bits.cpu_reset = 1;
sys/dev/oce/oce_hw.c
60
if (post_status.bits.stage <= POST_STAGE_AWAITING_HOST_RDY) {
sys/dev/oce/oce_hw.c
61
post_status.bits.stage = POST_STAGE_CHIP_RESET;
sys/dev/oce/oce_hw.c
73
if (post_status.bits.error) {
sys/dev/oce/oce_hw.c
78
if (post_status.bits.stage == POST_STAGE_ARMFW_READY)
sys/dev/oce/oce_hw.h
269
} bits;
sys/dev/oce/oce_hw.h
298
} bits;
sys/dev/oce/oce_hw.h
311
} bits;
sys/dev/oce/oce_hw.h
332
} bits;
sys/dev/oce/oce_hw.h
385
} bits;
sys/dev/oce/oce_hw.h
410
} bits;
sys/dev/oce/oce_hw.h
433
} bits;
sys/dev/oce/oce_hw.h
451
} bits;
sys/dev/oce/oce_hw.h
469
} bits;
sys/dev/oce/oce_hw.h
491
} bits;
sys/dev/oce/oce_hw.h
515
} bits;
sys/dev/oce/oce_hw.h
531
} bits;
sys/dev/oce/oce_hw.h
549
} bits;
sys/dev/oce/oce_if.c
1914
rxdb_reg.bits.num_posted = oce_max_rq_posts;
sys/dev/oce/oce_if.c
1915
rxdb_reg.bits.qid = rq->rq_id;
sys/dev/oce/oce_if.c
1926
rxdb_reg.bits.qid = rq->rq_id;
sys/dev/oce/oce_if.c
1927
rxdb_reg.bits.num_posted = added;
sys/dev/oce/oce_mbox.c
169
if (mbox_db.bits.ready)
sys/dev/oce/oce_mbox.c
195
mbox_db.bits.ready = 0;
sys/dev/oce/oce_mbox.c
196
mbox_db.bits.hi = 1;
sys/dev/oce/oce_mbox.c
197
mbox_db.bits.address = pa;
sys/dev/oce/oce_mbox.c
204
mbox_db.bits.ready = 0;
sys/dev/oce/oce_mbox.c
205
mbox_db.bits.hi = 0;
sys/dev/oce/oce_mbox.c
206
mbox_db.bits.address = pa;
sys/dev/oce/oce_queue.c
962
eq_db.bits.rearm = rearm;
sys/dev/oce/oce_queue.c
963
eq_db.bits.event = 1;
sys/dev/oce/oce_queue.c
964
eq_db.bits.num_popped = npopped;
sys/dev/oce/oce_queue.c
965
eq_db.bits.clrint = clearint;
sys/dev/oce/oce_queue.c
966
eq_db.bits.qid = qid;
sys/dev/oce/oce_queue.c
982
cq_db.bits.rearm = rearm;
sys/dev/oce/oce_queue.c
983
cq_db.bits.num_popped = npopped;
sys/dev/oce/oce_queue.c
984
cq_db.bits.event = 0;
sys/dev/oce/oce_queue.c
985
cq_db.bits.qid = qid;
sys/dev/pccbb/pccbbvar.h
157
cbb_setb(struct cbb_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/pccbb/pccbbvar.h
159
cbb_set(sc, reg, cbb_get(sc, reg) | bits);
sys/dev/pccbb/pccbbvar.h
163
cbb_clrb(struct cbb_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/pccbb/pccbbvar.h
165
cbb_set(sc, reg, cbb_get(sc, reg) & ~bits);
sys/dev/ppbus/pcfclock.c
224
pcfclock_read_data(struct cdev *dev, char *buf, ssize_t bits)
sys/dev/ppbus/pcfclock.c
234
bzero(buf, ((bits + 3) >> 2) + 1);
sys/dev/ppbus/pcfclock.c
237
for (i = 0; i <= bits; i++) {
sys/dev/qat/qat_common/adf_cfg_device.c
371
int engine, thread, service, bits;
sys/dev/qat/qat_common/adf_cfg_device.c
378
bits = 0;
sys/dev/qat/qat_common/adf_cfg_device.c
397
(1 << bits);
sys/dev/qat/qat_common/adf_cfg_device.c
398
bits++;
sys/dev/qat/qat_common/adf_cfg_device.c
416
(1 << bits);
sys/dev/qat/qat_common/adf_cfg_device.c
417
bits++;
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
52
#define EDMA_REG_SET_BITS(sc, reg, bits) \
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
53
EDMA_REG_WRITE(sc, reg, EDMA_REG_READ(sc, (reg)) | (bits))
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
55
#define EDMA_REG_CLEAR_BITS(sc, reg, bits) \
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
56
EDMA_REG_WRITE(sc, reg, EDMA_REG_READ(sc, (reg)) & ~(bits))
sys/dev/qcom_mdio/qcom_mdio_ipq4018_var.h
53
#define MDIO_SET_BITS(sc, reg, bits) \
sys/dev/qcom_mdio/qcom_mdio_ipq4018_var.h
54
GPIO_WRITE(sc, reg, MDIO_READ(sc, (reg)) | (bits))
sys/dev/qcom_mdio/qcom_mdio_ipq4018_var.h
56
#define MDIO_CLEAR_BITS(sc, reg, bits) \
sys/dev/qcom_mdio/qcom_mdio_ipq4018_var.h
57
GPIO_WRITE(sc, reg, MDIO_READ(sc, (reg)) & ~(bits))
sys/dev/qcom_tlmm/qcom_tlmm_var.h
46
#define GPIO_SET_BITS(sc, reg, bits) \
sys/dev/qcom_tlmm/qcom_tlmm_var.h
47
GPIO_WRITE(sc, reg, GPIO_READ(sc, (reg)) | (bits))
sys/dev/qcom_tlmm/qcom_tlmm_var.h
49
#define GPIO_CLEAR_BITS(sc, reg, bits) \
sys/dev/qcom_tlmm/qcom_tlmm_var.h
50
GPIO_WRITE(sc, reg, GPIO_READ(sc, (reg)) & ~(bits))
sys/dev/qlnx/qlnxe/ecore_int.c
1036
struct aeu_invert_reg_bit *p_bit = &p_aeu->bits[j];
sys/dev/qlnx/qlnxe/ecore_int.c
1056
u32 bits;
sys/dev/qlnx/qlnxe/ecore_int.c
1062
bits = aeu_inv_arr[i] & en;
sys/dev/qlnx/qlnxe/ecore_int.c
1065
if (!bits)
sys/dev/qlnx/qlnxe/ecore_int.c
1078
p_aeu = &sb_attn_sw->p_aeu_desc[i].bits[j];
sys/dev/qlnx/qlnxe/ecore_int.c
1092
bitmask = bits & (((1 << bit_len) - 1) << bit);
sys/dev/qlnx/qlnxe/ecore_int.c
126
struct aeu_invert_reg_bit bits[32];
sys/dev/qlnx/qlnxe/ecore_int.c
1386
p_aeu = &aeu_descs[i].bits[j];
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
3940
u8 *bits,
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
3964
*bits |= bit;
sys/dev/qlxgbe/ql_hw.c
118
qla_validate_set_port_cfg_bit(uint32_t bits)
sys/dev/qlxgbe/ql_hw.c
120
if ((bits & 0xF) > 1)
sys/dev/qlxgbe/ql_hw.c
123
if (((bits >> 4) & 0xF) > 2)
sys/dev/qlxgbe/ql_hw.c
126
if (((bits >> 8) & 0xF) > 2)
sys/dev/qlxge/qls_hw.c
954
qls_wait_for_config_reg_bits(qla_host_t *ha, uint32_t bits, uint32_t value)
sys/dev/qlxge/qls_hw.c
962
if ((data32 & bits) == value)
sys/dev/rtsx/rtsx.c
336
#define RTSX_CLR(sc, reg, bits) \
sys/dev/rtsx/rtsx.c
338
int err = rtsx_write((sc), (reg), (bits), 0); \
sys/dev/rtsx/rtsx.c
343
#define RTSX_SET(sc, reg, bits) \
sys/dev/rtsx/rtsx.c
345
int err = rtsx_write((sc), (reg), (bits), 0xff);\
sys/dev/rtsx/rtsx.c
350
#define RTSX_BITOP(sc, reg, mask, bits) \
sys/dev/rtsx/rtsx.c
352
int err = rtsx_write((sc), (reg), (mask), (bits)); \
sys/dev/smartpqi/smartpqi_init.c
426
if (reset_reg.bits.reset_action == PQI_RESET_ACTION_COMPLETED)
sys/dev/smartpqi/smartpqi_init.c
461
pqi_reset_reg.bits.reset_type = PQI_RESET_TYPE_HARD_RESET;
sys/dev/smartpqi/smartpqi_init.c
462
pqi_reset_reg.bits.reset_action = PQI_RESET_ACTION_RESET;
sys/dev/smartpqi/smartpqi_structures.h
189
} bits;
sys/dev/sound/pci/als4000.c
533
u_int8_t bits;
sys/dev/sound/pci/als4000.c
557
if (amt[i].bits) v |= 1 << i;
sys/dev/sound/pci/als4000.c
575
mask = ((1 << amt[dev].bits) - 1) << (8 - amt[dev].bits);
sys/dev/sound/pci/cmi.c
618
u_int8_t bits:3; /* num bits to represent maximum gain rep */
sys/dev/sound/pci/cmi.c
655
if (cmt[i].bits) v |= 1 << i;
sys/dev/sound/pci/cmi.c
679
max = (1 << cmt[dev].bits) - 1;
sys/dev/sound/pci/cmi.c
692
l = (left * max / 100) << (8 - cmt[dev].bits);
sys/dev/sound/pci/cmi.c
694
r = (right * max / 100) << (8 - cmt[dev].bits);
sys/dev/sound/pci/hda/hdaa.c
1858
static const int bits[8] = { 8, 16, 20, 24, 32, 32, 32, 32 };
sys/dev/sound/pci/hda/hdaa.c
1861
size = bits[(fmt >> 4) & 0x03];
sys/dev/sound/pci/hda/hdac.c
1437
int rate, bits;
sys/dev/sound/pci/hda/hdac.c
1445
bits = mbits[(fmt >> 4) & 0x03];
sys/dev/sound/pci/hda/hdac.c
1446
bits *= (fmt & 0x0f) + 1;
sys/dev/sound/pci/hda/hdac.c
1447
return (rate * bits);
sys/dev/sound/pci/hda/hdac.c
1454
int rate, bits;
sys/dev/sound/pci/hda/hdac.c
1458
bits = bbits[(fmt >> 4) & 0x03];
sys/dev/sound/pci/hda/hdac.c
1459
bits *= (fmt & 0x0f) + 1;
sys/dev/sound/pci/hda/hdac.c
1461
bits = ((bits + 7) & ~0x07) + 10;
sys/dev/sound/pci/hda/hdac.c
1462
return (rate * bits);
sys/dev/sound/pci/t4dwave.c
486
u_int32_t bits;
sys/dev/sound/pci/t4dwave.c
488
bits = 0;
sys/dev/sound/pci/t4dwave.c
489
bits |= (fmt & AFMT_SIGNED)? 0x2 : 0;
sys/dev/sound/pci/t4dwave.c
490
bits |= (AFMT_CHANNEL(fmt) > 1)? 0x4 : 0;
sys/dev/sound/pci/t4dwave.c
491
bits |= (fmt & AFMT_16BIT)? 0x8 : 0;
sys/dev/sound/pci/t4dwave.c
493
return bits;
sys/dev/sound/pci/t4dwave.c
630
u_int32_t i, bits;
sys/dev/sound/pci/t4dwave.c
632
bits = tr_fmttobits(format);
sys/dev/sound/pci/t4dwave.c
634
i = (sndbuf_runsz(ch->buffer) >> ((bits & 0x08)? 1 : 0)) - 1;
sys/dev/sound/pci/t4dwave.c
637
i = 0x18 | (bits << 4);
sys/dev/sound/pcm/ac97.c
432
if (e->reg && e->enable && e->bits) {
sys/dev/sound/pcm/ac97.c
436
max = (1 << e->bits) - 1; /* actual range */
sys/dev/sound/pcm/ac97.c
47
unsigned bits:4; /* width of control field */
sys/dev/sound/pcm/ac97.c
707
bit = codec->mix[i].bits;
sys/dev/sound/pcm/ac97.c
722
codec->mix[i].bits = j;
sys/dev/sound/pcm/ac97.c
748
printf("%s%d bit master volume", j++? ", " : "", codec->mix[SOUND_MIXER_VOLUME].bits);
sys/dev/sound/usb/uaudio.c
2172
uint8_t bits = uaudio_default_bits;
sys/dev/sound/usb/uaudio.c
2178
bits -= (bits % 8);
sys/dev/sound/usb/uaudio.c
2179
if ((bits == 0) || (bits > UAUDIO_BITS_MAX)) {
sys/dev/sound/usb/uaudio.c
2181
bits = UAUDIO_BITS_MAX;
sys/dev/sound/usb/uaudio.c
2210
for (y = bits; y; y -= 8) {
sys/dev/sound/usb/uaudio.c
2223
if (y == bits)
sys/dev/sound/usb/uaudio.c
2226
if (y == (bits + 8))
sys/dev/tpm/tpm.c
1040
u_int8_t bits, r;
sys/dev/tpm/tpm.c
1043
bits = flag == UIO_READ ? TPM_LEGACY_DA : 0;
sys/dev/tpm/tpm.c
1048
(TPM_LEGACY_BUSY|bits)) != bits && to--) {
sys/dev/tpm/tpm.c
1055
if ((r & (TPM_LEGACY_BUSY|bits)) != bits)
sys/dev/usb/controller/ehci_imx.c
154
imx_usbmisc_set_ctrl(device_t dev, u_int index, uint32_t bits)
sys/dev/usb/controller/ehci_imx.c
161
bus_write_4(sc->mmio, index * sizeof(uint32_t), reg | bits);
sys/dev/usb/controller/ehci_imx.c
166
imx_usbmisc_clr_ctrl(device_t dev, u_int index, uint32_t bits)
sys/dev/usb/controller/ehci_imx.c
173
bus_write_4(sc->mmio, index * sizeof(uint32_t), reg & ~bits);
sys/dev/usb/net/if_muge.c
344
lan78xx_wait_for_bits(struct muge_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/usb/net/if_muge.c
357
if (!(val & bits))
sys/dev/usb/net/if_smsc.c
335
smsc_wait_for_bits(struct smsc_softc *sc, uint32_t reg, uint32_t bits)
sys/dev/usb/net/if_smsc.c
348
if (!(val & bits))
sys/dev/usb/wlan/if_uath.c
1264
uath_set_rxfilter(struct uath_softc *sc, uint32_t bits, uint32_t op)
sys/dev/usb/wlan/if_uath.c
1268
rxfilter.bits = htobe32(bits);
sys/dev/usb/wlan/if_uath.c
1272
"setting Rx filter=0x%x flags=0x%x\n", bits, op);
sys/dev/usb/wlan/if_uathreg.h
393
uint32_t bits;
sys/dev/usb/wlan/if_zyd.c
2442
uint32_t bits;
sys/dev/usb/wlan/if_zyd.c
2520
bits = (rate == 11) ? (totlen * 16) + 10 :
sys/dev/usb/wlan/if_zyd.c
2522
desc->plcp_length = htole16(bits / ratediv[phy]);
sys/dev/usb/wlan/if_zyd.c
2524
if (rate == 22 && (bits % 11) > 0 && (bits % 11) <= 3)
sys/dev/vnic/nicvf_queues.c
123
uint64_t reg, int bit_pos, int bits, int val)
sys/dev/vnic/nicvf_queues.c
129
bit_mask = (1UL << bits) - 1;
sys/fs/nfs/nfs.h
396
u_int32_t bits[NFSATTRBIT_MAXWORDS];
sys/fs/nfs/nfs.h
400
(b)->bits[0] = 0; \
sys/fs/nfs/nfs.h
401
(b)->bits[1] = 0; \
sys/fs/nfs/nfs.h
402
(b)->bits[2] = 0; \
sys/fs/nfs/nfs.h
406
(t)->bits[0] = (f)->bits[0]; \
sys/fs/nfs/nfs.h
407
(t)->bits[1] = (f)->bits[1]; \
sys/fs/nfs/nfs.h
408
(t)->bits[2] = (f)->bits[2]; \
sys/fs/nfs/nfs.h
412
(b)->bits[0] = NFSATTRBIT_SUPP0; \
sys/fs/nfs/nfs.h
413
(b)->bits[1] = (NFSATTRBIT_SUPP1 | NFSATTRBIT_SUPPSETONLY1); \
sys/fs/nfs/nfs.h
414
(b)->bits[2] = (NFSATTRBIT_SUPP2 | NFSATTRBIT_SUPPSETONLY2); \
sys/fs/nfs/nfs.h
416
(b)->bits[1] &= ~NFSATTRBIT_NFSV41_1; \
sys/fs/nfs/nfs.h
417
(b)->bits[2] &= ~NFSATTRBIT_NFSV41_2; \
sys/fs/nfs/nfs.h
420
(b)->bits[2] &= ~NFSATTRBIT_NFSV42_2; \
sys/fs/nfs/nfs.h
423
#define NFSISSET_ATTRBIT(b, p) ((b)->bits[(p) / 32] & (1 << ((p) % 32)))
sys/fs/nfs/nfs.h
424
#define NFSSETBIT_ATTRBIT(b, p) ((b)->bits[(p) / 32] |= (1 << ((p) % 32)))
sys/fs/nfs/nfs.h
425
#define NFSCLRBIT_ATTRBIT(b, p) ((b)->bits[(p) / 32] &= ~(1 << ((p) % 32)))
sys/fs/nfs/nfs.h
428
(b)->bits[0] &= ~((a)->bits[0]); \
sys/fs/nfs/nfs.h
429
(b)->bits[1] &= ~((a)->bits[1]); \
sys/fs/nfs/nfs.h
430
(b)->bits[2] &= ~((a)->bits[2]); \
sys/fs/nfs/nfs.h
434
(b)->bits[0] &= ((a)->bits[0]); \
sys/fs/nfs/nfs.h
435
(b)->bits[1] &= ((a)->bits[1]); \
sys/fs/nfs/nfs.h
436
(b)->bits[2] &= ((a)->bits[2]); \
sys/fs/nfs/nfs.h
440
(b)->bits[0] &= NFSATTRBIT_SUPP0; \
sys/fs/nfs/nfs.h
441
(b)->bits[1] &= NFSATTRBIT_SUPP1; \
sys/fs/nfs/nfs.h
442
(b)->bits[2] &= NFSATTRBIT_SUPP2; \
sys/fs/nfs/nfs.h
444
(b)->bits[1] &= ~NFSATTRBIT_NFSV41_1; \
sys/fs/nfs/nfs.h
445
(b)->bits[2] &= ~NFSATTRBIT_NFSV41_2; \
sys/fs/nfs/nfs.h
448
(b)->bits[2] &= ~NFSATTRBIT_NFSV42_2; \
sys/fs/nfs/nfs.h
452
(b)->bits[0] &= NFSATTRBIT_SETABLE0; \
sys/fs/nfs/nfs.h
453
(b)->bits[1] &= NFSATTRBIT_SETABLE1; \
sys/fs/nfs/nfs.h
454
(b)->bits[2] &= NFSATTRBIT_SETABLE2; \
sys/fs/nfs/nfs.h
456
(b)->bits[2] &= ~NFSATTRBIT_NFSV41_2; \
sys/fs/nfs/nfs.h
458
(b)->bits[2] &= ~NFSATTRBIT_NFSV42_2; \
sys/fs/nfs/nfs.h
461
#define NFSNONZERO_ATTRBIT(b) ((b)->bits[0] || (b)->bits[1] || (b)->bits[2])
sys/fs/nfs/nfs.h
462
#define NFSEQUAL_ATTRBIT(b, p) ((b)->bits[0] == (p)->bits[0] && \
sys/fs/nfs/nfs.h
463
(b)->bits[1] == (p)->bits[1] && (b)->bits[2] == (p)->bits[2])
sys/fs/nfs/nfs.h
466
(b)->bits[0] = NFSATTRBIT_GETATTR0; \
sys/fs/nfs/nfs.h
467
(b)->bits[1] = NFSATTRBIT_GETATTR1; \
sys/fs/nfs/nfs.h
468
(b)->bits[2] = NFSATTRBIT_GETATTR2; \
sys/fs/nfs/nfs.h
472
(b)->bits[0] = NFSATTRBIT_WCCATTR0; \
sys/fs/nfs/nfs.h
473
(b)->bits[1] = NFSATTRBIT_WCCATTR1; \
sys/fs/nfs/nfs.h
474
(b)->bits[2] = NFSATTRBIT_WCCATTR2; \
sys/fs/nfs/nfs.h
478
(b)->bits[0] = NFSATTRBIT_WRITEGETATTR0; \
sys/fs/nfs/nfs.h
479
(b)->bits[1] = NFSATTRBIT_WRITEGETATTR1; \
sys/fs/nfs/nfs.h
480
(b)->bits[2] = NFSATTRBIT_WRITEGETATTR2; \
sys/fs/nfs/nfs.h
484
(c)->bits[0] = ((b)->bits[0] & NFSATTRBIT_CBGETATTR0); \
sys/fs/nfs/nfs.h
485
(c)->bits[1] = ((b)->bits[1] & NFSATTRBIT_CBGETATTR1); \
sys/fs/nfs/nfs.h
486
(c)->bits[2] = ((b)->bits[2] & NFSATTRBIT_CBGETATTR2); \
sys/fs/nfs/nfs.h
490
(b)->bits[0] = NFSGETATTRBIT_PATHCONF0; \
sys/fs/nfs/nfs.h
491
(b)->bits[1] = NFSGETATTRBIT_PATHCONF1; \
sys/fs/nfs/nfs.h
492
(b)->bits[2] = NFSGETATTRBIT_PATHCONF2; \
sys/fs/nfs/nfs.h
496
(b)->bits[0] = NFSGETATTRBIT_STATFS0; \
sys/fs/nfs/nfs.h
497
(b)->bits[1] = NFSGETATTRBIT_STATFS1; \
sys/fs/nfs/nfs.h
498
(b)->bits[2] = NFSGETATTRBIT_STATFS2; \
sys/fs/nfs/nfs.h
502
(b)->bits[0] = NFSGETATTRBIT_STATFS0 | NFSATTRBIT_GETATTR0 | \
sys/fs/nfs/nfs.h
504
(b)->bits[1] = NFSGETATTRBIT_STATFS1 | NFSATTRBIT_GETATTR1; \
sys/fs/nfs/nfs.h
505
(b)->bits[2] = NFSGETATTRBIT_STATFS2 | NFSATTRBIT_GETATTR2; \
sys/fs/nfs/nfs.h
509
(((b)->bits[0] & NFSATTRBIT_STATFS0) || \
sys/fs/nfs/nfs.h
510
((b)->bits[1] & NFSATTRBIT_STATFS1) || \
sys/fs/nfs/nfs.h
511
((b)->bits[2] & NFSATTRBIT_STATFS2))
sys/fs/nfs/nfs.h
514
(b)->bits[0] &= ~NFSATTRBIT_STATFS0; \
sys/fs/nfs/nfs.h
515
(b)->bits[1] &= ~NFSATTRBIT_STATFS1; \
sys/fs/nfs/nfs.h
516
(b)->bits[2] &= ~NFSATTRBIT_STATFS2; \
sys/fs/nfs/nfs.h
520
(b)->bits[0] = NFSATTRBIT_READDIRPLUS0; \
sys/fs/nfs/nfs.h
521
(b)->bits[1] = NFSATTRBIT_READDIRPLUS1; \
sys/fs/nfs/nfs.h
522
(b)->bits[2] = NFSATTRBIT_READDIRPLUS2; \
sys/fs/nfs/nfs.h
526
(b)->bits[0] = NFSATTRBIT_REFERRAL0; \
sys/fs/nfs/nfs.h
527
(b)->bits[1] = NFSATTRBIT_REFERRAL1; \
sys/fs/nfs/nfs.h
528
(b)->bits[2] = NFSATTRBIT_REFERRAL2; \
sys/fs/nfs/nfs.h
540
uint32_t bits[NFSOPBIT_MAXWORDS];
sys/fs/nfs/nfs.h
544
(b)->bits[0] = 0; \
sys/fs/nfs/nfs.h
545
(b)->bits[1] = 0; \
sys/fs/nfs/nfs.h
546
(b)->bits[2] = 0; \
sys/fs/nfs/nfs.h
550
(t)->bits[0] = (f)->bits[0]; \
sys/fs/nfs/nfs.h
551
(t)->bits[1] = (f)->bits[1]; \
sys/fs/nfs/nfs.h
552
(t)->bits[2] = (f)->bits[2]; \
sys/fs/nfs/nfs.h
555
#define NFSISSET_OPBIT(b, p) ((b)->bits[(p) / 32] & (1 << ((p) % 32)))
sys/fs/nfs/nfs.h
556
#define NFSSETBIT_OPBIT(b, p) ((b)->bits[(p) / 32] |= (1 << ((p) % 32)))
sys/fs/nfs/nfs.h
557
#define NFSCLRBIT_OPBIT(b, p) ((b)->bits[(p) / 32] &= ~(1 << ((p) % 32)))
sys/fs/nfs/nfs_commonsubs.c
1277
attrbitp->bits[i] = fxdr_unsigned(u_int32_t, *tl++);
sys/fs/nfs/nfs_commonsubs.c
1316
opbitp->bits[i] = fxdr_unsigned(uint32_t, *tl++);
sys/fs/nfs/nfs_commonsubs.c
3607
if (attrbitp->bits[cnt - 1])
sys/fs/nfs/nfs_commonsubs.c
3613
*tl++ = txdr_unsigned(attrbitp->bits[i]);
sys/fs/nfs/nfs_commonsubs.c
3628
if (opbitp->bits[cnt - 1])
sys/fs/nfs/nfs_commonsubs.c
3634
*tl++ = txdr_unsigned(opbitp->bits[i]);
sys/fs/nfs/nfsproto.h
1580
(b)->bits[0] &= NFSOPBIT_MUST0; \
sys/fs/nfs/nfsproto.h
1581
(b)->bits[1] &= NFSOPBIT_MUST1; \
sys/fs/nfs/nfsproto.h
1582
(b)->bits[2] &= NFSOPBIT_MUST2; \
sys/fs/nfs/nfsproto.h
1603
(b)->bits[0] &= NFSOPBIT_ALLOWED0; \
sys/fs/nfs/nfsproto.h
1604
(b)->bits[1] &= NFSOPBIT_ALLOWED1; \
sys/fs/nfs/nfsproto.h
1605
(b)->bits[2] &= NFSOPBIT_ALLOWED2; \
sys/fs/nfsserver/nfs_nfsdstate.c
1832
u_int32_t bits;
sys/fs/nfsserver/nfs_nfsdstate.c
2223
bits = tstp->ls_flags;
sys/fs/nfsserver/nfs_nfsdstate.c
2224
bits >>= NFSLCK_SHIFT;
sys/fs/nfsserver/nfs_nfsdstate.c
2225
if (new_stp->ls_flags & bits & NFSLCK_ACCESSBITS) {
sys/fs/nfsserver/nfs_nfsdstate.c
3464
u_int32_t bits;
sys/fs/nfsserver/nfs_nfsdstate.c
3576
bits = (new_stp->ls_flags & NFSLCK_SHAREBITS);
sys/fs/nfsserver/nfs_nfsdstate.c
3577
if (~(stp->ls_flags) & bits) {
sys/fs/nfsserver/nfs_nfsdstate.c
3582
stp->ls_flags = (bits | NFSLCK_OPEN);
sys/kern/sys_generic.c
1154
uint8_t bits;
sys/kern/sys_generic.c
1160
bits = 0; /* silence gcc */
sys/kern/sys_generic.c
1180
bits = res;
sys/kern/sys_generic.c
1182
if ((bits & (1 << (i % NBBY))) != 0)
sys/kern/sys_generic.c
1277
#define swizzle_fdset(bits) \
sys/kern/sys_generic.c
1278
if (abi_nfdbits != NFDBITS && bits != NULL) { \
sys/kern/sys_generic.c
1281
bits[i] = (bits[i] >> 32) | (bits[i] << 32); \
sys/kern/sys_generic.c
1284
#define swizzle_fdset(bits)
sys/kern/tty.c
1684
int bits = *(int *)data;
sys/kern/tty.c
1686
(bits & (TIOCM_DTR | TIOCM_RTS)) >> 1,
sys/kern/tty.c
1687
((~bits) & (TIOCM_DTR | TIOCM_RTS)) >> 1);
sys/kern/tty.c
1691
int bits = *(int *)data;
sys/kern/tty.c
1692
ttydevsw_modem(tp, (bits & (TIOCM_DTR | TIOCM_RTS)) >> 1, 0);
sys/kern/tty.c
1696
int bits = *(int *)data;
sys/kern/tty.c
1697
ttydevsw_modem(tp, 0, (bits & (TIOCM_DTR | TIOCM_RTS)) >> 1);
sys/net/iflib.c
4381
int err = 0, reinit = 0, bits;
sys/net/iflib.c
4414
bits = if_getdrvflags(ifp);
sys/net/iflib.c
4429
if_setdrvflags(ifp, bits);
sys/net/iflib.c
4528
bits = if_getdrvflags(ifp);
sys/net/iflib.c
4529
if (bits & IFF_DRV_RUNNING && setmask & ~IFCAP_WOL)
sys/net/iflib.c
4535
if (bits & IFF_DRV_RUNNING && setmask & ~IFCAP_WOL)
sys/net/iflib.c
4538
if_setdrvflags(ifp, bits);
sys/net/mppcd.c
107
uint32_t olen, off, len, bits, val, sig, i, l;
sys/net/mppcd.c
120
bits = *srcCnt * 8;
sys/net/mppcd.c
121
while (bits >= 8) {
sys/net/mppcd.c
133
bits -= 8;
sys/net/mppcd.c
149
bits -= 9;
sys/net/mppcd.c
158
bits -= 10;
sys/net/mppcd.c
162
bits -= 12;
sys/net/mppcd.c
166
bits -= 16;
sys/net/mppcd.c
181
bits--;
sys/net/mppcd.c
185
bits -= 4;
sys/net/mppcd.c
189
bits -= 6;
sys/net/mppcd.c
193
bits -= 8;
sys/net/mppcd.c
196
bits -= 8;
sys/net/mppcd.c
200
bits -= 2;
sys/net/mppcd.c
204
bits -= 4;
sys/net/mppcd.c
208
bits -= 6;
sys/net/mppcd.c
212
bits -= 8;
sys/net/mppcd.c
215
bits -= 8;
sys/net/mppcd.c
219
bits -= 2;
sys/net/mppcd.c
223
bits -= 4;
sys/net/mppcd.c
227
bits -= 6;
sys/net/mppcd.c
231
bits -= 8;
sys/net/netisr.c
951
u_int bits, prot;
sys/net/netisr.c
969
while ((bits = nwsp->nws_pendingbits) != 0) {
sys/net/netisr.c
970
while (bits != 0) {
sys/net/netisr.c
971
prot = ffs(bits) - 1;
sys/net/netisr.c
972
bits &= ~(1 << prot);
sys/net/rss_config.c
104
SYSCTL_INT(_net_inet_rss, OID_AUTO, bits, CTLFLAG_RDTUN, &rss_bits, 0,
sys/net80211/ieee80211_crypto_tkip.c
791
static __inline u32 rotl(u32 val, int bits)
sys/net80211/ieee80211_crypto_tkip.c
793
return (val << bits) | (val >> (32 - bits));
sys/net80211/ieee80211_crypto_tkip.c
796
static __inline u32 rotr(u32 val, int bits)
sys/net80211/ieee80211_crypto_tkip.c
798
return (val >> bits) | (val << (32 - bits));
sys/netgraph/ng_mppc.c
177
static void ng_mppc_updatekey(u_int32_t bits,
sys/netgraph/ng_mppc.c
284
if ((cfg->bits & ~MPPC_VALID_BITS) != 0)
sys/netgraph/ng_mppc.c
287
if ((cfg->bits & MPPC_BIT) != 0)
sys/netgraph/ng_mppc.c
291
if ((cfg->bits & MPPE_BITS) != 0)
sys/netgraph/ng_mppc.c
295
cfg->bits = 0;
sys/netgraph/ng_mppc.c
310
if ((cfg->bits & MPPC_BIT) != 0) {
sys/netgraph/ng_mppc.c
328
if ((cfg->bits & MPPE_BITS) != 0) {
sys/netgraph/ng_mppc.c
329
const int keylen = KEYLEN(cfg->bits);
sys/netgraph/ng_mppc.c
333
if ((cfg->bits & MPPE_40) != 0)
sys/netgraph/ng_mppc.c
335
else if ((cfg->bits & MPPE_56) != 0)
sys/netgraph/ng_mppc.c
492
if (d->flushed || ((d->cfg.bits & MPPE_STATELESS) != 0)) {
sys/netgraph/ng_mppc.c
499
if ((d->cfg.bits & MPPC_BIT) != 0) {
sys/netgraph/ng_mppc.c
537
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph/ng_mppc.c
581
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph/ng_mppc.c
588
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph/ng_mppc.c
590
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph/ng_mppc.c
595
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/ng_mppc.c
657
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph/ng_mppc.c
661
rekey = ((d->cfg.bits & MPPE_STATELESS) != 0) ?
sys/netgraph/ng_mppc.c
684
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph/ng_mppc.c
687
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph/ng_mppc.c
694
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph/ng_mppc.c
695
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/ng_mppc.c
713
if ((d->cfg.bits & MPPE_BITS) == 0) {
sys/netgraph/ng_mppc.c
721
if ((d->cfg.bits & MPPE_STATELESS) != 0
sys/netgraph/ng_mppc.c
723
ng_mppc_updatekey(d->cfg.bits,
sys/netgraph/ng_mppc.c
737
if ((d->cfg.bits & MPPE_BITS) != 0) {
sys/netgraph/ng_mppc.c
749
&& (d->cfg.bits & MPPC_BIT) == 0) {
sys/netgraph/ng_mppc.c
851
if ((d->cfg.bits & MPPE_STATELESS) == 0)
sys/netgraph/ng_mppc.c
852
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/ng_mppc.c
890
ng_mppc_updatekey(u_int32_t bits,
sys/netgraph/ng_mppc.c
893
const int keylen = KEYLEN(bits);
sys/netgraph/ng_mppc.c
898
if ((bits & MPPE_40) != 0)
sys/netgraph/ng_mppc.c
900
else if ((bits & MPPE_56) != 0)
sys/netgraph/ng_mppc.h
72
u_int32_t bits; /* config bits */
sys/netipsec/key.c
4287
dst->bits = src->sadb_key_bits;
sys/netipsec/key.c
4617
key_bbcmp(const void *a1, const void *a2, u_int bits)
sys/netipsec/key.c
4629
while (bits >= 8) {
sys/netipsec/key.c
4632
bits -= 8;
sys/netipsec/key.c
4635
if (bits > 0) {
sys/netipsec/key.c
4636
u_int8_t mask = ~((1<<(8-bits))-1);
sys/netipsec/key.c
8867
p->sadb_key_bits = src->bits;
sys/netipsec/key_var.h
53
#define _KEYLEN(key) ((u_int)((key)->bits >> 3))
sys/netipsec/key_var.h
54
#define _KEYBITS(key) ((u_int)((key)->bits))
sys/netipsec/keydb.h
85
u_int16_t bits;
sys/netlink/netlink_snl.h
842
struct snl_attr_bit **bits;
sys/netlink/netlink_snl.h
858
struct snl_attr_bits bits;
sys/netlink/netlink_snl.h
864
{ .type = NLA_BITSET_BITS, .off = _OUT(bits), .cb = snl_attr_get_parray, .arg = &_nla_bit_parser },
sys/netpfil/ipfilter/netinet/fil.c
10004
mtab->imt6_masks[bits]--;
sys/netpfil/ipfilter/netinet/fil.c
10005
if (mtab->imt6_masks[bits] > 0)
sys/netpfil/ipfilter/netinet/fil.c
10008
if (bits == 0)
sys/netpfil/ipfilter/netinet/fil.c
9662
int bits;
sys/netpfil/ipfilter/netinet/fil.c
9665
bits = htp->ht_netmask;
sys/netpfil/ipfilter/netinet/fil.c
9666
if (bits >= 32) {
sys/netpfil/ipfilter/netinet/fil.c
9669
mask = htonl(0xffffffff << (32 - bits));
sys/netpfil/ipfilter/netinet/fil.c
9674
int bits = htp->ht_netmask;
sys/netpfil/ipfilter/netinet/fil.c
9677
if (bits > 96) {
sys/netpfil/ipfilter/netinet/fil.c
9679
htonl(0xffffffff << (128 - bits));
sys/netpfil/ipfilter/netinet/fil.c
9683
} else if (bits > 64) {
sys/netpfil/ipfilter/netinet/fil.c
9686
htonl(0xffffffff << (96 - bits));
sys/netpfil/ipfilter/netinet/fil.c
9689
} else if (bits > 32) {
sys/netpfil/ipfilter/netinet/fil.c
9693
htonl(0xffffffff << (64 - bits));
sys/netpfil/ipfilter/netinet/fil.c
9700
htonl(0xffffffff << (32 - bits));
sys/netpfil/ipfilter/netinet/fil.c
9886
ipf_inet_mask_add(int bits, ipf_v4_masktab_t *mtab)
sys/netpfil/ipfilter/netinet/fil.c
9891
mtab->imt4_masks[bits]++;
sys/netpfil/ipfilter/netinet/fil.c
9892
if (mtab->imt4_masks[bits] > 1)
sys/netpfil/ipfilter/netinet/fil.c
9895
if (bits == 0)
sys/netpfil/ipfilter/netinet/fil.c
9898
mask = 0xffffffff << (32 - bits);
sys/netpfil/ipfilter/netinet/fil.c
9922
ipf_inet_mask_del(int bits, ipf_v4_masktab_t *mtab)
sys/netpfil/ipfilter/netinet/fil.c
9927
mtab->imt4_masks[bits]--;
sys/netpfil/ipfilter/netinet/fil.c
9928
if (mtab->imt4_masks[bits] > 0)
sys/netpfil/ipfilter/netinet/fil.c
9931
mask = htonl(0xffffffff << (32 - bits));
sys/netpfil/ipfilter/netinet/fil.c
9959
ipf_inet6_mask_add(int bits, i6addr_t *mask, ipf_v6_masktab_t *mtab)
sys/netpfil/ipfilter/netinet/fil.c
9964
mtab->imt6_masks[bits]++;
sys/netpfil/ipfilter/netinet/fil.c
9965
if (mtab->imt6_masks[bits] > 1)
sys/netpfil/ipfilter/netinet/fil.c
9968
if (bits == 0) {
sys/netpfil/ipfilter/netinet/fil.c
9999
ipf_inet6_mask_del(int bits, i6addr_t *mask, ipf_v6_masktab_t *mtab)
sys/netpfil/ipfilter/netinet/ip_htable.c
891
int bits;
sys/netpfil/ipfilter/netinet/ip_htable.c
900
bits = count4bits(ipe->ipe_mask.in4_addr);
sys/netpfil/ipfilter/netinet/ip_htable.c
916
bits = count6bits(ipe->ipe_mask.i6);
sys/netpfil/ipfilter/netinet/ip_htable.c
978
ipf_inet_mask_add(bits, &iph->iph_v4_masks);
sys/netpfil/ipfilter/netinet/ip_htable.c
982
ipf_inet6_mask_add(bits, &ipe->ipe_mask, &iph->iph_v6_masks);
sys/netpfil/ipfilter/netinet/radix_ipf.c
1036
fill6bits(int bits, u_int *msk)
sys/netpfil/ipfilter/netinet/radix_ipf.c
1038
if (bits == 0) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
1051
if (bits == 128)
sys/netpfil/ipfilter/netinet/radix_ipf.c
1053
if (bits > 96) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
1054
msk[3] = htonl(msk[3] << (128 - bits));
sys/netpfil/ipfilter/netinet/radix_ipf.c
1055
} else if (bits > 64) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
1057
msk[2] = htonl(msk[2] << (96 - bits));
sys/netpfil/ipfilter/netinet/radix_ipf.c
1058
} else if (bits > 32) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
1061
msk[1] = htonl(msk[1] << (64 - bits));
sys/netpfil/ipfilter/netinet/radix_ipf.c
1066
msk[0] = htonl(msk[0] << (32 - bits));
sys/netpfil/ipfilter/netinet/radix_ipf.c
334
u_32_t bits;
sys/netpfil/ipfilter/netinet/radix_ipf.c
356
bits = (ntohl(*data) ^ ntohl(*key));
sys/netpfil/ipfilter/netinet/radix_ipf.c
357
for (; bits != 0; nlen++) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
358
if ((bits & 0x80000000) != 0)
sys/netpfil/ipfilter/netinet/radix_ipf.c
360
bits <<= 1;
sys/netpfil/ipfw/ip_dn_io.c
598
uint64_t bits;
sys/netpfil/ipfw/ip_dn_io.c
604
bits = div64((uint64_t)pf->samples[index] * s->link.bandwidth, 1000);
sys/netpfil/ipfw/ip_dn_io.c
610
return bits;
sys/netpfil/ipfw/ip_fw2.c
295
flags_match(ipfw_insn *cmd, u_int8_t bits)
sys/netpfil/ipfw/ip_fw2.c
298
bits = ~bits;
sys/netpfil/ipfw/ip_fw2.c
300
if ( ((cmd->arg1 & 0xff) & bits) != 0)
sys/netpfil/ipfw/ip_fw2.c
303
if ( (want_clear & bits) != want_clear)
sys/netpfil/ipfw/ip_fw2.c
311
int optlen, bits = 0;
sys/netpfil/ipfw/ip_fw2.c
332
bits |= IP_FW_IPOPT_LSRR;
sys/netpfil/ipfw/ip_fw2.c
336
bits |= IP_FW_IPOPT_SSRR;
sys/netpfil/ipfw/ip_fw2.c
340
bits |= IP_FW_IPOPT_RR;
sys/netpfil/ipfw/ip_fw2.c
344
bits |= IP_FW_IPOPT_TS;
sys/netpfil/ipfw/ip_fw2.c
348
return (flags_match(cmd, bits));
sys/netpfil/ipfw/ip_fw2.c
358
int optlen, bits = 0;
sys/netpfil/ipfw/ip_fw2.c
382
bits |= IP_FW_TCPOPT_MSS;
sys/netpfil/ipfw/ip_fw2.c
389
bits |= IP_FW_TCPOPT_WINDOW;
sys/netpfil/ipfw/ip_fw2.c
394
bits |= IP_FW_TCPOPT_SACK;
sys/netpfil/ipfw/ip_fw2.c
399
bits |= IP_FW_TCPOPT_SACK;
sys/netpfil/ipfw/ip_fw2.c
404
bits |= IP_FW_TCPOPT_TS;
sys/netpfil/ipfw/ip_fw2.c
408
return (bits);
sys/opencrypto/gfmult.c
105
readrow(struct gf128table *tbl, unsigned bits)
sys/opencrypto/gfmult.c
109
bits = bits % 16;
sys/opencrypto/gfmult.c
111
r.v[0] = ((uint64_t)tbl->a[bits] << 32) | tbl->b[bits];
sys/opencrypto/gfmult.c
112
r.v[1] = ((uint64_t)tbl->c[bits] << 32) | tbl->d[bits];
sys/opencrypto/gfmult.c
138
unsigned bits;
sys/opencrypto/gfmult.c
143
bits = word % 16;
sys/opencrypto/gfmult.c
146
row = readrow(tbl, bits);
sys/riscv/riscv/pmap.c
2912
pt_entry_t bits, *pte, oldpte;
sys/riscv/riscv/pmap.c
2937
bits = PTE_A;
sys/riscv/riscv/pmap.c
2939
bits |= PTE_D;
sys/riscv/riscv/pmap.c
2946
if ((oldpte & bits) != bits)
sys/riscv/riscv/pmap.c
2947
pmap_store_bits(pte, bits);
sys/riscv/riscv/pmap.c
345
#define pmap_clear_bits(pte, bits) atomic_clear_64(pte, bits)
sys/riscv/riscv/pmap.c
350
#define pmap_store_bits(pte, bits) atomic_set_64(pte, bits)
sys/riscv/riscv/pmap.c
390
#define L1_PTE(pa, bits) ((((pa) >> L1_SHIFT) << PTE_PPN2_S) | (bits))
sys/riscv/riscv/pmap.c
391
#define L2_PTE(pa, bits) ((((pa) >> L2_SHIFT) << PTE_PPN1_S) | (bits))
sys/riscv/riscv/pmap.c
392
#define L3_PTE(pa, bits) ((((pa) >> L3_SHIFT) << PTE_PPN0_S) | (bits))
sys/riscv/riscv/pmap.c
401
#define L0_PDE(pa, bits) L3_PTE(pa, bits)
sys/riscv/riscv/pmap.c
402
#define L1_PDE(pa, bits) L3_PTE(pa, bits)
sys/riscv/riscv/pmap.c
403
#define L2_PDE(pa, bits) L3_PTE(pa, bits)
sys/riscv/riscv/pmap.c
4966
pt_entry_t bits, mask;
sys/riscv/riscv/pmap.c
4979
bits = pmap_memattr_bits(mode);
sys/riscv/riscv/pmap.c
4992
if ((l1e & mask) == bits) {
sys/riscv/riscv/pmap.c
5018
if ((l2e & mask) == bits) {
sys/riscv/riscv/pmap.c
5049
if ((l1e & mask) == bits) {
sys/riscv/riscv/pmap.c
5055
l1e |= bits;
sys/riscv/riscv/pmap.c
5075
if ((l2e & mask) == bits) {
sys/riscv/riscv/pmap.c
5081
l2e |= bits;
sys/riscv/riscv/pmap.c
5101
if ((l3e & mask) == bits) {
sys/riscv/riscv/pmap.c
5107
l3e |= bits;
sys/sys/ctf.h
227
#define _CTF_DATA(encoding, offset, bits) \
sys/sys/ctf.h
228
(((encoding) << 24) | ((offset) << 16) | (bits))
sys/sys/qmath.h
187
#define Q_IBITS2CH(q, bits, base) \
sys/sys/qmath.h
189
__typeof(bits) _tmp = (bits) / (base); \
sys/sys/qmath.h
190
int _idx = (bits) - (_tmp * (base)); \
sys/sys/qmath.h
191
(bits) = _tmp; \
sys/sys/qmath.h
196
#define Q_FBITS2CH(q, bits, base) \
sys/sys/qmath.h
206
_carry = (((bits) & ((1ULL << _shift) - 1)) * (base)) >> _shift;\
sys/sys/qmath.h
208
_idx = ((((bits) >> _shift) * (base)) + _carry) >> (_nfbits - _shift);\
sys/sys/qmath.h
209
(bits) *= (base); /* With _idx computed, no overflow concern. */ \
sys/sys/qmath.h
210
(bits) &= (1ULL << _nfbits) - 1; /* Exclude residual int bits. */ \
sys/vm/vm_map.c
147
#define CONTAINS_BITS(set, bits) ((~(set) & (bits)) == 0)
sys/vm/vm_object.c
307
vm_object_clear_flag(vm_object_t object, u_short bits)
sys/vm/vm_object.c
311
object->flags &= ~bits;
sys/vm/vm_object.h
293
vm_object_set_flag(vm_object_t object, u_int bits)
sys/vm/vm_object.h
296
object->flags |= bits;
sys/vm/vm_object.h
334
void vm_object_clear_flag(vm_object_t object, u_short bits);
sys/vm/vm_page.c
5337
vm_page_bits_set(vm_page_t m, vm_page_bits_t *bits, vm_page_bits_t set)
sys/vm/vm_page.c
5341
atomic_set_64((uint64_t *)bits, set);
sys/vm/vm_page.c
5343
atomic_set_32((uint32_t *)bits, set);
sys/vm/vm_page.c
5345
atomic_set_16((uint16_t *)bits, set);
sys/vm/vm_page.c
5347
atomic_set_8((uint8_t *)bits, set);
sys/vm/vm_page.c
5352
addr = (uintptr_t)bits;
sys/vm/vm_page.c
5370
vm_page_bits_clear(vm_page_t m, vm_page_bits_t *bits, vm_page_bits_t clear)
sys/vm/vm_page.c
5374
atomic_clear_64((uint64_t *)bits, clear);
sys/vm/vm_page.c
5376
atomic_clear_32((uint32_t *)bits, clear);
sys/vm/vm_page.c
5378
atomic_clear_16((uint16_t *)bits, clear);
sys/vm/vm_page.c
5380
atomic_clear_8((uint8_t *)bits, clear);
sys/vm/vm_page.c
5385
addr = (uintptr_t)bits;
sys/vm/vm_page.c
5403
vm_page_bits_swap(vm_page_t m, vm_page_bits_t *bits, vm_page_bits_t newbits)
sys/vm/vm_page.c
5408
old = *bits;
sys/vm/vm_page.c
5409
while (atomic_fcmpset_64(bits, &old, newbits) == 0);
sys/vm/vm_page.c
5414
old = *bits;
sys/vm/vm_page.c
5415
while (atomic_fcmpset_32(bits, &old, newbits) == 0);
sys/vm/vm_page.c
5420
old = *bits;
sys/vm/vm_page.c
5421
while (atomic_fcmpset_16(bits, &old, newbits) == 0);
sys/vm/vm_page.c
5426
old = *bits;
sys/vm/vm_page.c
5427
while (atomic_fcmpset_8(bits, &old, newbits) == 0);
sys/vm/vm_page.c
5434
addr = (uintptr_t)bits;
sys/vm/vm_page.c
5449
old = *bits;
sys/vm/vm_page.c
5666
vm_page_bits_t bits;
sys/vm/vm_page.c
5679
bits = VM_PAGE_BITS_ALL;
sys/vm/vm_page.c
5681
bits = vm_page_bits(base, size);
sys/vm/vm_page.c
5682
if (object->ref_count != 0 && vm_page_all_valid(m) && bits != 0)
sys/vm/vm_page.c
5684
KASSERT((bits == 0 && vm_page_all_valid(m)) ||
sys/vm/vm_page.c
5688
m->valid &= ~bits;
sys/vm/vm_page.c
5689
m->dirty &= ~bits;
sys/vm/vm_page.c
5691
vm_page_bits_clear(m, &m->valid, bits);
sys/vm/vm_page.c
5692
vm_page_bits_clear(m, &m->dirty, bits);
sys/vm/vm_page.c
5775
vm_page_bits_t bits;
sys/vm/vm_page.c
5777
bits = vm_page_bits(base, size);
sys/vm/vm_page.c
5778
return (vm_page_any_valid(m) && (m->valid & bits) == bits);
sys/vm/vm_page.c
5866
vm_page_assert_pga_writeable(vm_page_t m, uint16_t bits)
sys/vm/vm_page.c
5869
if ((bits & PGA_WRITEABLE) == 0)
sys/vm/vm_page.h
574
void vm_page_bits_set(vm_page_t m, vm_page_bits_t *bits, vm_page_bits_t set);
sys/vm/vm_page.h
733
void vm_page_assert_pga_writeable(vm_page_t m, uint16_t bits);
sys/vm/vm_page.h
734
#define VM_PAGE_ASSERT_PGA_WRITEABLE(m, bits) \
sys/vm/vm_page.h
735
vm_page_assert_pga_writeable(m, bits)
sys/vm/vm_page.h
752
#define VM_PAGE_ASSERT_PGA_WRITEABLE(m, bits) (void)0
sys/vm/vm_page.h
795
vm_page_aflag_clear(vm_page_t m, uint16_t bits)
sys/vm/vm_page.h
805
val = bits << VM_PAGE_AFLAG_SHIFT;
sys/vm/vm_page.h
813
vm_page_aflag_set(vm_page_t m, uint16_t bits)
sys/vm/vm_page.h
817
VM_PAGE_ASSERT_PGA_WRITEABLE(m, bits);
sys/vm/vm_page.h
825
val = bits << VM_PAGE_AFLAG_SHIFT;
sys/vm/vnode_pager.c
675
vm_page_bits_t bits;
sys/vm/vnode_pager.c
692
bits = vm_page_bits(i * bsize, bsize);
sys/vm/vnode_pager.c
693
if (m->valid & bits)
sys/vm/vnode_pager.c
744
KASSERT((m->dirty & bits) == 0,
sys/vm/vnode_pager.c
746
vm_page_bits_set(m, &m->valid, bits);
sys/x86/cpufreq/hwpstate_amd.c
131
#define BITS_VALUE(bits, val) \
sys/x86/cpufreq/hwpstate_amd.c
132
(((val) & (bits)) >> (ffsll((bits)) - 1))
sys/x86/cpufreq/hwpstate_amd.c
133
#define BITS_WITH_VALUE(bits, val) \
sys/x86/cpufreq/hwpstate_amd.c
134
(((uintmax_t)(val) << (ffsll((bits)) - 1)) & (bits))
sys/x86/cpufreq/hwpstate_amd.c
135
#define SET_BITS_VALUE(var, bits, val) \
sys/x86/cpufreq/hwpstate_amd.c
136
((var) = ((var) & ~(bits)) | BITS_WITH_VALUE((bits), (val)))
sys/x86/cpufreq/hwpstate_amd.c
241
const uint64_t bits, const uint64_t msr_value)
sys/x86/cpufreq/hwpstate_amd.c
244
BITS_VALUE(bits, msr_value));
sys/x86/x86/mp_x86.c
405
int bits;
sys/x86/x86/mp_x86.c
429
bits = p[0] & 0x1f;
sys/x86/x86/mp_x86.c
436
core_id_shift = bits;
sys/x86/x86/mp_x86.c
438
pkg_id_shift = bits;
sys/x86/x86/mp_x86.c
440
printf("Topology level type %d shift: %d\n", type, bits);
tests/sys/capsicum/capability-fd.cc
150
uint64_t bits = (rights.cr_rights[0] & 0x01ffffffffffffffULL);
tests/sys/capsicum/capability-fd.cc
151
if (bits != 0) {
tests/sys/capsicum/capability-fd.cc
154
if (bits & which) {
tests/sys/sound/pcm_read_write.c
241
size_t bits;
tests/sys/sound/pcm_read_write.c
248
bits = AFMT_BIT(test->format);
tests/sys/sound/pcm_read_write.c
249
ATF_CHECK_MSG(bits == test->size * 8,
tests/sys/sound/pcm_read_write.c
251
i, test->size * 8, bits);
tools/tools/ath/athdecode/main.c
377
const char* bits;
tools/tools/ath/athdecode/main.c
384
bits = dr->bits;
tools/tools/ath/athdecode/main.c
389
bits = NULL;
tools/tools/ath/athdecode/main.c
394
bits = NULL;
tools/tools/ath/athdecode/main.c
399
bits = NULL;
tools/tools/ath/athdecode/main.c
403
bits = NULL;
tools/tools/ath/athdecode/main.c
406
bits = NULL;
tools/tools/ath/athdecode/main.c
409
if (bits) {
tools/tools/ath/athdecode/main.c
410
const char *p = bits;
tools/tools/ath/common/dumpregs.h
37
const char *bits;
tools/tools/ath/common/dumpregs.h
69
{ .addr = _addr, .name = _name, .type = _type, .bits = _fmt }
tools/tools/net80211/wesside/wesside/wesside.c
125
int bits = 0;
tools/tools/net80211/wesside/wesside/wesside.c
2798
bits = 64;
tools/tools/netmap/nmreplay.c
1468
Bandwidths are expressed in bits per second, can be followed by a
tools/tools/netmap/nmreplay.c
1471
b/B bits per second
tools/tools/netmap/nmreplay.c
1472
k/K kbits/s (10^3 bits/s)
tools/tools/netmap/nmreplay.c
1473
m/M mbits/s (10^6 bits/s)
tools/tools/netmap/nmreplay.c
1474
g/G gbits/s (10^9 bits/s)
usr.bin/compress/compress.c
110
(void)compress("/dev/stdin", "/dev/stdout", bits);
usr.bin/compress/compress.c
113
(void)decompress("/dev/stdin", "/dev/stdout", bits);
usr.bin/compress/compress.c
126
compress("/dev/stdin", "/dev/stdout", bits);
usr.bin/compress/compress.c
129
compress(*argv, "/dev/stdout", bits);
usr.bin/compress/compress.c
147
compress(*argv, newname, bits);
usr.bin/compress/compress.c
151
decompress("/dev/stdin", "/dev/stdout", bits);
usr.bin/compress/compress.c
166
cat ? "/dev/stdout" : *argv, bits);
usr.bin/compress/compress.c
175
cat ? "/dev/stdout" : newname, bits);
usr.bin/compress/compress.c
183
compress(const char *in, const char *out, int bits)
usr.bin/compress/compress.c
208
if ((ofp = zopen(out, "w", bits)) == NULL) {
usr.bin/compress/compress.c
273
decompress(const char *in, const char *out, int bits)
usr.bin/compress/compress.c
287
if ((ifp = zopen(in, "r", bits)) == NULL) {
usr.bin/compress/compress.c
62
int bits, cat, ch;
usr.bin/compress/compress.c
80
bits = 0;
usr.bin/compress/compress.c
84
bits = strtol(optarg, &p, 10);
usr.bin/compress/zopen.c
368
u_int bits;
usr.bin/compress/zopen.c
372
bits = n_bits;
usr.bin/compress/zopen.c
384
bits -= (8 - r_off);
usr.bin/compress/zopen.c
387
if (bits >= 8) {
usr.bin/compress/zopen.c
390
bits -= 8;
usr.bin/compress/zopen.c
393
if (bits)
usr.bin/compress/zopen.c
398
bits = n_bits;
usr.bin/compress/zopen.c
399
bytes_out += bits;
usr.bin/compress/zopen.c
400
if (fwrite(bp, sizeof(char), bits, fp) != bits)
usr.bin/compress/zopen.c
402
bp += bits;
usr.bin/compress/zopen.c
403
bits = 0;
usr.bin/compress/zopen.c
575
int r_off, bits;
usr.bin/compress/zopen.c
604
bits = n_bits;
usr.bin/compress/zopen.c
612
bits -= (8 - r_off);
usr.bin/compress/zopen.c
616
if (bits >= 8) {
usr.bin/compress/zopen.c
619
bits -= 8;
usr.bin/compress/zopen.c
623
if (bits > 0)
usr.bin/compress/zopen.c
624
gcode |= (*bp & rmask[bits]) << r_off;
usr.bin/compress/zopen.c
691
zopen(const char *fname, const char *mode, int bits)
usr.bin/compress/zopen.c
696
bits < 0 || bits > BITS) {
usr.bin/compress/zopen.c
704
maxbits = bits ? bits : BITS; /* User settable max # bits/code. */
usr.bin/dtc/fdt.cc
542
unsigned long long bits = 0;
usr.bin/dtc/fdt.cc
545
valid &= input.consume_integer(bits);
usr.bin/dtc/fdt.cc
546
if ((bits != 8) &&
usr.bin/dtc/fdt.cc
547
(bits != 16) &&
usr.bin/dtc/fdt.cc
548
(bits != 32) &&
usr.bin/dtc/fdt.cc
549
(bits != 64)) {
usr.bin/dtc/fdt.cc
561
parse_cells(input, bits);
usr.bin/gzip/zuncompress.c
336
int r_off, bits, i;
usr.bin/gzip/zuncompress.c
373
bits = zs->zs_n_bits;
usr.bin/gzip/zuncompress.c
381
bits -= (8 - r_off);
usr.bin/gzip/zuncompress.c
385
if (bits >= 8) {
usr.bin/gzip/zuncompress.c
388
bits -= 8;
usr.bin/gzip/zuncompress.c
392
gcode |= (*bp & rmask[bits]) << r_off;
usr.bin/mt/mt.c
462
printreg(const char *s, u_int v, const char *bits)
usr.bin/mt/mt.c
467
if (bits && *bits == 8)
usr.bin/mt/mt.c
471
if (!bits)
usr.bin/mt/mt.c
473
bits++;
usr.bin/mt/mt.c
474
if (v && bits) {
usr.bin/mt/mt.c
476
while ((i = *bits++)) {
usr.bin/mt/mt.c
481
for (; (c = *bits) > 32; bits++)
usr.bin/mt/mt.c
484
for (; *bits > 32; bits++)
usr.bin/netstat/common.c
58
fmt_flags(const struct bits *p, int f)
usr.bin/netstat/common.c
71
print_flags_generic(int flags, const struct bits *pbits, const char *format,
usr.bin/netstat/common.c
74
const struct bits *p;
usr.bin/netstat/common.h
40
extern struct bits rt_bits[];
usr.bin/netstat/common.h
42
const char *fmt_flags(const struct bits *p, int f);
usr.bin/netstat/common.h
43
void print_flags_generic(int flags, const struct bits *pbits,
usr.bin/netstat/nhops.c
440
struct bits *p;
usr.bin/netstat/nhops.c
87
static struct bits nh_bits[] = {
usr.bin/netstat/route.c
68
struct bits rt_bits[] = {
usr.sbin/bhyve/pci_e82545.c
575
e82545_icr_assert(struct e82545_softc *sc, uint32_t bits)
usr.sbin/bhyve/pci_e82545.c
579
DPRINTF("icr assert: 0x%x", bits);
usr.sbin/bhyve/pci_e82545.c
586
new = bits & ~sc->esc_ICR & sc->esc_IMS;
usr.sbin/bhyve/pci_e82545.c
587
sc->esc_ICR |= bits;
usr.sbin/bhyve/pci_e82545.c
606
e82545_ims_change(struct e82545_softc *sc, uint32_t bits)
usr.sbin/bhyve/pci_e82545.c
614
new = bits & sc->esc_ICR & ~sc->esc_IMS;
usr.sbin/bhyve/pci_e82545.c
615
sc->esc_IMS |= bits;
usr.sbin/bhyve/pci_e82545.c
634
e82545_icr_deassert(struct e82545_softc *sc, uint32_t bits)
usr.sbin/bhyve/pci_e82545.c
637
DPRINTF("icr deassert: 0x%x", bits);
usr.sbin/bhyve/pci_e82545.c
638
sc->esc_ICR &= ~bits;
usr.sbin/bhyve/pci_e82545.c
645
DPRINTF("icr deassert: lintr deassert %x", bits);
usr.sbin/bhyve/qemu_fwcfg.c
130
*eax = htole16(fwcfg_sc.selector.bits);
usr.sbin/bhyve/qemu_fwcfg.c
135
fwcfg_sc.selector.bits = le16toh(*eax);
usr.sbin/bhyve/qemu_fwcfg.c
69
uint16_t bits;
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
1001
bits = wlan_channel_flags_to_snmp(channel->ic_flags);
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
1002
return (bits_get(val, (uint8_t *)&bits, sizeof(bits)));
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
1016
bits = wlan_channel_state_to_snmp(channel->ic_state);
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
1017
return (bits_get(val, (uint8_t *)&bits, sizeof(bits)));
usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
965
int32_t bits;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1204
int i, bits;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1210
for (i = len, value = 0, bits = 0; i > 0; i--, bits += 8)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1211
value += octets[i] << bits;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1223
int i, size, bits, saved_errno;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1236
bits = 8;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1241
mask = mask >> bits;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1250
for (i = 0, bits = 0; i < size; i++, bits += 8)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1252
(asn_subid_t)((v & mask) >> bits)) < 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1262
int i, size, bits, saved_errno;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1276
bits = 8;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1281
mask = mask >> bits;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1293
for (i = 0, bits = 0; i < size; i++, bits += 8)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1294
value->v.octetstring.octets[i] = (v & mask) >> bits;
usr.sbin/cron/lib/entry.c
529
get_list(bitstr_t *bits, int low, int high, const char *names[], int ch,
usr.sbin/cron/lib/entry.c
547
bit_nclear(bits, 0, (high-low+1));
usr.sbin/cron/lib/entry.c
553
ch = get_range(bits, low, high, names, ch, file);
usr.sbin/cron/lib/entry.c
579
get_range(bitstr_t *bits, int low, int high, const char *names[], int ch,
usr.sbin/cron/lib/entry.c
606
if (EOF == set_element(bits, low, high, num1))
usr.sbin/cron/lib/entry.c
653
if (EOF == set_element(bits, low, high, i))
usr.sbin/cron/lib/entry.c
720
set_element(bitstr_t *bits, int low, int high, int number)
usr.sbin/cron/lib/entry.c
727
bit_set(bits, (number-low));
usr.sbin/ifmcstat/printb.c
40
printb(const char *s, unsigned int v, const char *bits)
usr.sbin/ifmcstat/printb.c
45
assert(bits != NULL);
usr.sbin/ifmcstat/printb.c
46
if (*bits == 8)
usr.sbin/ifmcstat/printb.c
50
bits++;
usr.sbin/ifmcstat/printb.c
51
if (bits) {
usr.sbin/ifmcstat/printb.c
53
while ((i = *bits++) != '\0') {
usr.sbin/ifmcstat/printb.c
58
for (; (c = *bits) > 32; bits++)
usr.sbin/ifmcstat/printb.c
61
for (; *bits > 32; bits++)
usr.sbin/jail/state.c
161
static int bits[] = { 0, 1, 1, 2, 1, 2, 2, 3 };
usr.sbin/jail/state.c
189
if (bits[dj->flags & JF_OP_MASK] <= 1) {
usr.sbin/mountd/mountd.c
3983
int bits, i, len;
usr.sbin/mountd/mountd.c
3991
bits = MIN(CHAR_BIT, bitlen);
usr.sbin/mountd/mountd.c
3992
*p++ = (u_char)~0 << (CHAR_BIT - bits);
usr.sbin/mountd/mountd.c
3993
bitlen -= bits;
usr.sbin/moused/moused/quirks.c
142
uint32_t bits;
usr.sbin/moused/moused/quirks.c
1516
m->bits |= M_NAME;
usr.sbin/moused/moused/quirks.c
1528
m->bits |= M_UNIQ;
usr.sbin/moused/moused/quirks.c
1539
m->bits |= M_PID|M_VID|M_VERSION;
usr.sbin/moused/moused/quirks.c
1543
m->bits |= M_BUS;
usr.sbin/moused/moused/quirks.c
1547
m->bits |= M_BUS;
usr.sbin/moused/moused/quirks.c
1551
m->bits |= M_BUS;
usr.sbin/moused/moused/quirks.c
1555
m->bits |= M_BUS;
usr.sbin/moused/moused/quirks.c
1559
m->bits |= M_BUS;
usr.sbin/moused/moused/quirks.c
1563
m->bits |= M_BUS;
usr.sbin/moused/moused/quirks.c
1599
m->bits |= M_UDEV_TYPE;
usr.sbin/moused/moused/quirks.c
1607
m->bits |= M_DMI;
usr.sbin/moused/moused/quirks.c
1612
m->bits |= M_DT;
usr.sbin/moused/moused/quirks.c
1732
if ((s->match.bits & flag) == 0)
usr.sbin/moused/moused/quirks.c
1737
if ((m->bits & flag) == 0) {
usr.sbin/moused/moused/quirks.c
1805
if (s->match.bits == matched_flags) {
usr.sbin/moused/moused/quirks.c
556
if ((s_)->match.bits & (bit_)) goto out; \
usr.sbin/moused/moused/quirks.c
557
(s_)->match.bits |= (bit_); \
usr.sbin/ppp/ncpaddr.c
1002
range->ncprange_ip6width = (bits == -1) ? 128 : bits;
usr.sbin/ppp/ncpaddr.c
117
bits2mask6(int bits)
usr.sbin/ppp/ncpaddr.c
125
while (bits) {
usr.sbin/ppp/ncpaddr.c
132
bits--;
usr.sbin/ppp/ncpaddr.c
520
int bits;
usr.sbin/ppp/ncpaddr.c
536
for (bits = range->ncprange_ip6width; bits > 0; bits -= 8)
usr.sbin/ppp/ncpaddr.c
537
if ((*addrp++ ^ *rangep++) & masks[bits > 7 ? 7 : bits - 1])
usr.sbin/ppp/ncpaddr.c
80
bits2mask4(int bits)
usr.sbin/ppp/ncpaddr.c
87
while (bits) {
usr.sbin/ppp/ncpaddr.c
90
bits--;
usr.sbin/ppp/ncpaddr.c
905
int bits, len;
usr.sbin/ppp/ncpaddr.c
955
bits = -1;
usr.sbin/ppp/ncpaddr.c
958
bits = strtol(data + len + 1, &wp, 0);
usr.sbin/ppp/ncpaddr.c
959
if (*wp || wp == data + len + 1 || bits < 0 || bits > 128) {
usr.sbin/ppp/ncpaddr.c
978
} else if (bits == -1) {
usr.sbin/ppp/ncpaddr.c
981
} else if (bits > 32) {
usr.sbin/ppp/ncpaddr.c
985
range->ncprange_ip4mask = bits2mask4(bits);
usr.sbin/ppp/ncpaddr.c
986
range->ncprange_ip4width = bits;
usr.sbin/ppp/route.c
152
} bits[] = {
usr.sbin/ppp/route.c
184
register struct bits *p = bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
169
data.io_info.bits = pvp->bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
208
data.mon_info.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
237
data.mon_info.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
266
data.mon_info.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
297
data.io_peak.bits = pvp->bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
307
data.mon_peak.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
318
data.mon_peak.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
329
data.mon_peak.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
425
data.master_peak.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/ctl.c
436
data.master_peak.bits = voss_dsp_bits;
usr.sbin/virtual_oss/virtual_oss/int.h
139
uint8_t bits;
usr.sbin/virtual_oss/virtual_oss/main.c
2148
profile.bits = atoi(optarg);
usr.sbin/virtual_oss/virtual_oss/main.c
2149
switch (profile.bits) {
usr.sbin/virtual_oss/virtual_oss/main.c
2198
if (profile.bits == 0)
usr.sbin/virtual_oss/virtual_oss/main.c
2200
voss_dsp_bits = profile.bits;
usr.sbin/virtual_oss/virtual_oss/main.c
2237
if (profile.bits == 0 || voss_dsp_sample_rate == 0 ||
usr.sbin/virtual_oss/virtual_oss/main.c
2242
profile.bits * profile.channels) / 8;
usr.sbin/virtual_oss/virtual_oss/main.c
2271
if (profile.bits == 0 || profile.channels == 0)
usr.sbin/virtual_oss/virtual_oss/main.c
305
switch (pvp->bits) {
usr.sbin/virtual_oss/virtual_oss/main.c
320
switch (pvp->bits) {
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
459
src_chans, (1ULL << (pvp->bits - 1)) - 1ULL);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
468
shift_fmt = pvp->bits - (vclient_sample_bytes(pvc) * 8);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
546
shift_fmt = pvp->bits - (vclient_sample_bytes(pvc) * 8);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
602
shift_fmt = pvp->bits - (vclient_sample_bytes(pvc) * 8);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
787
samples * src_chans, (1ULL << (pvp->bits - 1)) - 1ULL);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
796
shift_fmt = pvp->bits - (vclient_sample_bytes(pvc) * 8);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.h
140
int bits;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.h
44
int bits;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.h
65
int bits;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.h
86
int bits;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.h
96
int bits;