/freebsd/sys/kern/ |
H A D | posix4_mib.c | 58 #define P1B_SYSCTL(num, name) \ argument 59 SYSCTL_INT(_p1003_1b, num, name, CTLFLAG_RD | CTLFLAG_CAPRD, \ 60 facility + num - 1, 0, ""); 61 #define P1B_SYSCTL_RW(num, name) \ argument 62 SYSCTL_PROC(_p1003_1b, num, name, \ 63 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, NULL, num, \ 70 #define P1B_SYSCTL(num, name) \ argument 72 facility + num - 1, 0, ""); 73 #define P1B_SYSCTL_RW(num, name) \ argument 75 num, p31b_sysctl_proc, "I", ""); [all …]
|
/freebsd/lib/libnetbsd/ |
H A D | strsuftoll.c | 110 long long num, t; in __weak_alias() local 119 num = strtoll(val, &expr, 10); in __weak_alias() 128 t = num; in __weak_alias() 129 num *= 512; /* 1 block */ in __weak_alias() 130 if (t > num) in __weak_alias() 135 t = num; in __weak_alias() 136 num *= 1024; /* 1 kilobyte */ in __weak_alias() 137 if (t > num) in __weak_alias() 142 t = num; in __weak_alias() 143 num *= 1048576; /* 1 megabyte */ in __weak_alias() [all …]
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bf_buff.c | 15 static int buffer_write(BIO *h, const char *buf, int num); 89 int i, num = 0; in buffer_read() local 98 num = 0; in buffer_read() 110 num += i; in buffer_read() 112 return num; in buffer_read() 129 return ((num > 0) ? num : i); in buffer_read() 131 return num; in buffer_read() 133 num += i; in buffer_read() 135 return num; in buffer_read() 147 return ((num > 0) ? num : i); in buffer_read() [all …]
|
H A D | bss_dgram.c | 45 static int dgram_write(BIO *h, const char *buf, int num); 54 static int dgram_sctp_write(BIO *h, const char *buf, int num); 186 BIO_closesocket(a->num); in dgram_clear() 208 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 217 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 253 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 258 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout() 278 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout() 284 (b->num, SOL_SOCKET, SO_RCVTIMEO, &(data->socket_timeout), in dgram_reset_rcv_timeout() 308 ret = recvfrom(b->num, out, outl, flags, in dgram_read() [all …]
|
H A D | bss_bio.c | 31 static int bio_write(BIO *bio, const char *buf, int num); 32 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr); 203 ossl_ssize_t num; in bio_nread0() local 226 num = peer_b->len; in bio_nread0() 227 if (peer_b->size < peer_b->offset + num) in bio_nread0() 229 num = peer_b->size - peer_b->offset; in bio_nread0() 230 assert(num > 0); in bio_nread0() 234 return num; in bio_nread0() 240 ossl_ssize_t num, available; in bio_nread() local 243 num = OSSL_SSIZE_MAX; in bio_nread() [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | param_build.c | 40 } num; member 77 void *num, size_t size, int type) in param_push_num() argument 83 if (size > sizeof(pd->num)) { in param_push_num() 87 memcpy(&pd->num, num, size); in param_push_num() 122 int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int num) in OSSL_PARAM_BLD_push_int() argument 124 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_int() 128 unsigned int num) in OSSL_PARAM_BLD_push_uint() argument 130 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint() 135 long int num) in OSSL_PARAM_BLD_push_long() argument 137 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_long() [all …]
|
H A D | mem.c | 177 void *CRYPTO_malloc(size_t num, const char *file, int line) in CRYPTO_malloc() argument 181 return malloc_impl(num, file, line); in CRYPTO_malloc() 183 if (num == 0) in CRYPTO_malloc() 196 return malloc(num); in CRYPTO_malloc() 199 void *CRYPTO_zalloc(size_t num, const char *file, int line) in CRYPTO_zalloc() argument 203 ret = CRYPTO_malloc(num, file, line); in CRYPTO_zalloc() 205 memset(ret, 0, num); in CRYPTO_zalloc() 210 void *CRYPTO_realloc(void *str, size_t num, const char *file, int line) in CRYPTO_realloc() argument 214 return realloc_impl(str, num, file, line); in CRYPTO_realloc() 217 return CRYPTO_malloc(num, file, line); in CRYPTO_realloc() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_hw.c | 51 int num = dat->num; in ossl_cipher_hw_generic_ofb128() local 53 CRYPTO_ofb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->block); in ossl_cipher_hw_generic_ofb128() 54 dat->num = num; in ossl_cipher_hw_generic_ofb128() 62 int num = dat->num; in ossl_cipher_hw_generic_cfb128() local 64 CRYPTO_cfb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb128() 66 dat->num = num; in ossl_cipher_hw_generic_cfb128() 74 int num = dat->num; in ossl_cipher_hw_generic_cfb8() local 76 CRYPTO_cfb128_8_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb8() 78 dat->num = num; in ossl_cipher_hw_generic_cfb8() 86 int num = dat->num; in ossl_cipher_hw_generic_cfb1() local [all …]
|
/freebsd/crypto/openssl/crypto/des/ |
H A D | ofb_enc.c | 31 register int num = numbits; in DES_ofb_encrypt() local 35 if (num > 64) in DES_ofb_encrypt() 37 if (num > 32) { in DES_ofb_encrypt() 39 if (num >= 64) in DES_ofb_encrypt() 42 mask1 = (1L << (num - 32)) - 1; in DES_ofb_encrypt() 44 if (num == 32) in DES_ofb_encrypt() 47 mask0 = (1L << num) - 1; in DES_ofb_encrypt() 69 if (num == 32) { in DES_ofb_encrypt() 72 } else if (num == 64) { in DES_ofb_encrypt() 75 } else if (num > 32) { /* && num != 64 */ in DES_ofb_encrypt() [all …]
|
/freebsd/lib/libsecureboot/efi/ |
H A D | efi_init.c | 38 size_t num; in ve_efi_init() local 51 xcs = efi_get_trusted_certs(&num); in ve_efi_init() 52 if (num > 0 && xcs != NULL) { in ve_efi_init() 53 num = ve_trust_anchors_add(xcs, num); in ve_efi_init() 54 free_certificates(xcs, num); in ve_efi_init() 56 xcs = efi_get_forbidden_certs(&num); in ve_efi_init() 57 if (num > 0 && xcs != NULL) { in ve_efi_init() 58 num = ve_forbidden_anchors_add(xcs, num); in ve_efi_init() 59 free_certificates(xcs, num); in ve_efi_init() 61 digests = efi_get_forbidden_digests(&num); in ve_efi_init() [all …]
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | evp_asn1.c | 36 int ret, num; in ASN1_TYPE_get_octetstring() local 46 num = ret; in ASN1_TYPE_get_octetstring() 48 num = max_len; in ASN1_TYPE_get_octetstring() 49 if (num > 0 && data != NULL) in ASN1_TYPE_get_octetstring() 50 memcpy(data, p, num); in ASN1_TYPE_get_octetstring() 64 long *num, unsigned char *data, int max_len) in asn1_type_get_int_oct() argument 68 if (num != NULL) in asn1_type_get_int_oct() 69 *num = anum; in asn1_type_get_int_oct() 83 int32_t num; member 88 ASN1_EMBED(asn1_int_oct, num, INT32), [all …]
|
/freebsd/crypto/openssl/crypto/stack/ |
H A D | stack.c | 25 int num; member 52 ret->num = 0; in OPENSSL_sk_dup() 60 if (sk == NULL || sk->num == 0) { in OPENSSL_sk_dup() 71 memcpy(ret->data, sk->data, sizeof(void *) * sk->num); in OPENSSL_sk_dup() 91 ret->num = 0; in OPENSSL_sk_deep_copy() 99 if (sk == NULL || sk->num == 0) { in OPENSSL_sk_deep_copy() 106 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy() 111 for (i = 0; i < ret->num; ++i) { in OPENSSL_sk_deep_copy() 179 if (n > max_nodes - st->num) { in sk_reserve() 185 num_alloc = st->num + n; in sk_reserve() [all …]
|
/freebsd/contrib/bearssl/test/ |
H A D | test_speed.c | 41 long num; \ 49 num = 10; \ 57 for (k = num; k > 0; k --) { \ 65 ((double)sizeof buf) * (double)num \ 70 num <<= 1; \ 86 long num; \ 101 num = 10; \ 109 for (k = num; k > 0; k --) { \ 116 ((double)sizeof buf) * (double)num \ 121 num <<= 1; \ [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_nicenum.c | 61 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, in zfs_nicenum_format() argument 64 uint64_t n = num; in zfs_nicenum_format() 84 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format() 86 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) { in zfs_nicenum_format() 87 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format() 89 } else if (format == ZFS_NICENUM_RAWTIME && num == 0) { in zfs_nicenum_format() 102 if ((format == ZFS_NICENUM_TIME) && (num == 0)) { in zfs_nicenum_format() 104 } else if ((index == 0) || ((num % in zfs_nicenum_format() 124 val = (double)num / in zfs_nicenum_format() 153 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument [all …]
|
/freebsd/tools/regression/poll/ |
H A D | sockpoll.c | 66 report(int num, const char *state, int expected, int got) in report() argument 74 printf("ok %-2d ", num); in report() 76 printf("not ok %-2d", num); in report() 119 int num; in main() local 121 num = 1; in main() 129 report(num++, "initial 0", POLLOUT, pfd0.revents); in main() 132 report(num++, "initial 1", POLLOUT, pfd1.revents); in main() 137 report(num++, "after large write", 0, pfd0.revents); in main() 140 report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents); in main() 144 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); in main() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | rsa_mp_test.c | 203 BIGNUM *num = NULL; in key2048p3_v2() local 211 if (!TEST_ptr(num = BN_bin2bn(p, sizeof(p) - 1, NULL)) in key2048p3_v2() 212 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2() 213 || !TEST_ptr(num = BN_bin2bn(q, sizeof(q) - 1, NULL)) in key2048p3_v2() 214 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2() 215 || !TEST_ptr(num = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL)) in key2048p3_v2() 216 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0)) in key2048p3_v2() 219 if (!TEST_ptr(num = BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL)) in key2048p3_v2() 220 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0) in key2048p3_v2() 221 || !TEST_ptr(num = BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL)) in key2048p3_v2() [all …]
|
/freebsd/crypto/openssl/crypto/bn/asm/ |
H A D | s390x-mont.pl | 72 $num="%r1"; 99 lgf $num,`$stdframe+$SIZE_T-4`($sp) # pull $num 100 sla $num,`log($SIZE_T)/log(2)` # $num to enumerate bytes 101 la $bp,0($num,$bp) 105 cghi $num,16 # 107 blr %r14 # if($num<16) return 0; 110 tmll $num,4 111 bnzr %r14 # if ($num&1) return 0; 114 cghi $num,96 # 115 bhr %r14 # if($num>96) return 0; [all …]
|
H A D | bn-586.pl | 272 $num="ebp"; 277 &mov($num,&wparam(2)); # 280 &and($num,0xfffffff8); # num / 8 302 &sub($num,8); 307 &mov($num,&wparam(2)); # get num 308 &and($num,7); 323 &dec($num) if ($i != 7-1); 374 $num="ebx"; 378 &mov($num,&wparam(2)); # 380 &and($num,0xfffffff8); # num / 8 [all …]
|
H A D | x86_64-mont.pl | 91 $num="%r9"; # int num); 110 mov ${num}d,${num}d 113 test \$3,${num}d 115 cmp \$8,${num}d 124 test \$7,${num}d 143 neg $num 145 lea -16(%rsp,$num,8),%r10 # future alloca(8*(num+2)) 146 neg $num # restore $num 173 mov %rax,8(%rsp,$num,8) # tp[num+1]=%rsp 174 .cfi_cfa_expression %rsp+8,$num,8,mul,plus,deref,+8 [all …]
|
H A D | armv4-mont.pl | 74 $num="r0"; # starts as num argument, but holds &tp[num-1] 92 $_rp="$num,#12*4"; 94 $_bp="$num,#13*4"; 96 $_n0="$num,#14*4"; 97 $_num="$num,#15*4"; $_bpend=$_num; 149 mov $num,ip @ load num 159 mov $num,$num,lsl#2 @ rescale $num for byte count 160 sub sp,sp,$num @ alloca(4*num) 162 sub $num,$num,#4 @ "num=num-1" 163 add $tp,$bp,$num @ &bp[num-1] [all …]
|
H A D | x86_64-mont5.pl | 76 $num="%r9"; # int num, 99 mov ${num}d,${num}d 102 test \$7,${num}d 127 neg $num 129 lea -280(%rsp,$num,8),%r10 # future alloca(8*(num+2)+256+8) 130 neg $num # restore $num 157 mov %rax,8(%rsp,$num,8) # tp[num+1]=%rsp 158 .cfi_cfa_expression %rsp+8,$num,8,mul,plus,deref,+8 169 lea 24-112(%rsp,$num,8),%r10# place the mask after tp[num+3] (+ICache optimization) 295 cmp $num,$j [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Instruction.def | 21 #define FIRST_TERM_INST(num) 25 #define HANDLE_TERM_INST(num, opcode, Class) 27 #define HANDLE_TERM_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 31 #define LAST_TERM_INST(num) 35 #define FIRST_UNARY_INST(num) 39 #define HANDLE_UNARY_INST(num, opcode, instclass) 41 #define HANDLE_UNARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 45 #define LAST_UNARY_INST(num) 49 #define FIRST_BINARY_INST(num) 53 #define HANDLE_BINARY_INST(num, opcode, instclass) [all …]
|
/freebsd/contrib/bc/scripts/ |
H A D | sqrt_random.bc | 60 num = irand(limit) + 1 68 num *= num 84 scale = length(num) + 5 85 num = 1/num 88 num >>= extra 92 num <<= extra 98 l = length(num) 104 num [all...] |
/freebsd/stand/libsa/ |
H A D | printf.c | 56 static char *ksprintn (char *buf, uintmax_t num, int base, int *len, int upper); 201 ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) in ksprintn() argument 208 c = hex2ascii(num % base); in ksprintn() 210 } while (num /= base); in ksprintn() 262 uintmax_t num; in kvprintf() local 270 num = 0; in kvprintf() 342 num = (u_int)va_arg(ap, int); in kvprintf() 344 for (q = ksprintn(nbuf, num, *p++, NULL, 0); *q;) in kvprintf() 347 if (num == 0) in kvprintf() 352 if (num & (1 << (n - 1))) { in kvprintf() [all …]
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld_printf.c | 105 ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) in ksprintn() argument 112 c = upper ? hex2ascii_upper(num % base) : in ksprintn() 113 hex2ascii(num % base); in ksprintn() 115 } while (num /= base); in ksprintn() 129 uintmax_t num; in kvprintf() local 136 num = 0; in kvprintf() 203 num = (u_int)va_arg(ap, int); in kvprintf() 205 for (q = ksprintn(nbuf, num, *p++, NULL, 0); *q;) in kvprintf() 208 if (num == 0) in kvprintf() 213 if (num & (1 << (n - 1))) { in kvprintf() [all …]
|