/freebsd/share/doc/papers/sysperf/ |
H A D | appendix.ms | 44 'ds +K 45 'ds -K 50 'ds +K \f3 51 'ds -K \fP 133 \h'|11n'\*(+Kchar\*(-K \fI*\fPargv[]; 134 \*(+K{\*(-K 135 \h'|11n'\*(+Kregister\*(-K \*(+Kint\*(-K ncalls; 137 \h'|11n'\*(+Kif\*(-K (argc < 2) \*(+K{\*(-K 140 \h'|11n'\*(+K}\*(-K 142 \h'|11n'\*(+Kwhile\*(-K (ncalls\*-\*- > 0) [all …]
|
/freebsd/tools/regression/ccd/layout/ |
H A D | ccd0.sh | 16 foo 128k 128k 128k 128k 0 0 17 foo 128k 128k 128k 128k 0 4 18 foo 128k 128k 128k 128k 4 0 19 foo 128k 128k 128k 128k 4 2 20 foo 128k 128k 128k 128k 4 4 22 foo 256k 128k 128k 128k 0 0 23 foo 256k 128k 128k 128k 0 4 24 foo 256k 128k 128k 128k 4 0 25 foo 256k 128k 128k 128k 4 2 26 foo 256k 128k 128k 128k 4 4 [all …]
|
/freebsd/contrib/lyaml/spec/ |
H A D | ext_yaml_scanner_spec.yaml | 6 local k = yaml.scanner (str) 7 for n = 1, n do k () end 8 return k 13 k = yaml.scanner "" 14 expect (k ().type).to_be "STREAM_START" 15 expect (k ().type).to_be "STREAM_END" 16 expect (k ()).to_be (nil) 17 expect (k ()).to_be (nil) 19 k = yaml.scanner "# A comment\nnon-comment # trailing comment\n" 20 expect (k ().type).to_be "STREAM_START" [all …]
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | rte_jhash.h | 39 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument 65 #define BIT_SHIFT(x, y, k) (((x) >> (k)) | ((uint64_t)(y) << (32-(k)))) argument 67 #define BIT_SHIFT(x, y, k) (((uint64_t)(x) << (k)) | ((y) >> (32-(k)))) 89 const uint32_t *k = (const uint32_t *)key; in __rte_jhash_2hashes() local 92 const uint32_t *k = (uint32_t *)((uintptr_t)key & (uintptr_t)~3); in __rte_jhash_2hashes() local 97 a += k[0]; in __rte_jhash_2hashes() 98 b += k[1]; in __rte_jhash_2hashes() 99 c += k[2]; in __rte_jhash_2hashes() 103 k += 3; in __rte_jhash_2hashes() 109 c += k[2]; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() [all …]
|
/freebsd/bin/ps/ |
H A D | print.c | 94 arguments(KINFO *k, VARENT *ve) in arguments() argument 98 if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) in arguments() 100 strvis(vis_args, k->ki_args, VIS_TAB | VIS_NL | VIS_NOSLASH); in arguments() 109 command(KINFO *k, VARENT *ve) in command() argument 117 k->ki_d.prefix ? k->ki_d.prefix : "", in command() 118 k->ki_p->ki_comm, in command() 119 (showthreads && k->ki_p->ki_numthreads > 1) ? "/" : "", in command() 120 (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_tdname : "", in command() 121 (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_moretdname : ""); in command() 123 str = strdup(k->ki_p->ki_comm); in command() [all …]
|
/freebsd/crypto/openssl/crypto/camellia/ |
H A D | camellia.c | 286 int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey, KEY_TABLE_TYPE k) in Camellia_Ekeygen() argument 290 k[0] = s0 = GETU32(rawKey); in Camellia_Ekeygen() 291 k[1] = s1 = GETU32(rawKey + 4); in Camellia_Ekeygen() 292 k[2] = s2 = GETU32(rawKey + 8); in Camellia_Ekeygen() 293 k[3] = s3 = GETU32(rawKey + 12); in Camellia_Ekeygen() 296 k[8] = s0 = GETU32(rawKey + 16); in Camellia_Ekeygen() 297 k[9] = s1 = GETU32(rawKey + 20); in Camellia_Ekeygen() 299 k[10] = s2 = ~s0; in Camellia_Ekeygen() 300 k[11] = s3 = ~s1; in Camellia_Ekeygen() 302 k[10] = s2 = GETU32(rawKey + 24); in Camellia_Ekeygen() [all …]
|
/freebsd/share/doc/papers/kernmalloc/ |
H A D | appendix.ms | 44 'ds +K 45 'ds -K 50 'ds +K \f3 51 'ds -K \fP 123 \*(+K#define\*(-K MINBUCKET\h'|31n'4\h'|51n'\fI\h'\w' 'u-\w'/'u'/\fP\fI*\fP\c\c 129 \*(+K#define\*(-K MAXALLOCSAVE\h'|31n'(2 \fI*\fP CLBYTES) 140 \*(+K#define\*(-K MAXKMEM\h'|31n'(1024 \fI*\fP PAGESIZE) 150 \*(+Kextern\*(-K \*(+Kchar\*(-K kmembase[MAXKMEM]; 159 \*(+Kstruct\*(-K kmemsizes \*(+K{\*(-K 160 \h'|11n'\*(+Kshort\*(-K\h'|21n'ks\*_indx;\h'|41n'\fI\h'\w' 'u-\w'/'u'/\fP\fI*\fP\c\c [all …]
|
/freebsd/crypto/openssl/crypto/modes/asm/ |
H A D | aes-gcm-armv8-unroll8_64.pl | 27 # | CTR block 8k+13| AES block 8k+8 | GHASH block 8k+0 | 30 # | CTR block 8k+14| AES block 8k+9 | GHASH block 8k+1 | 33 # | CTR block 8k+15| AES block 8k+10| GHASH block 8k+2 | 36 # | CTR block 8k+16| AES block 8k+11| GHASH block 8k+3 | 39 # | CTR block 8k+17| AES block 8k+12| GHASH block 8k+4 | 42 # | CTR block 8k+18| AES block 8k+13| GHASH block 8k+5 | 45 # | CTR block 8k+19| AES block 8k+14| GHASH block 8k+6 | 48 # | CTR block 8k+20| AES block 8k+15| GHASH block 8k+7 | 55 # Ensure previous generated intermediate hash is aligned and merged with result for GHASH 4k+0 57 # EOR res_curr (8k+0), res_curr (4k+0), low_acc [all …]
|
H A D | aes-gcm-armv8_64.pl | 27 # | CTR block 4k+8 | AES block 4k+4 | GHASH block 4k+0 | 30 # | CTR block 4k+9 | AES block 4k+5 | GHASH block 4k+1 | 33 # | CTR block 4k+10| AES block 4k+6 | GHASH block 4k+2 | 36 # | CTR block 4k+11| AES block 4k+7 | GHASH block 4k+3 | 43 # Ensure previous generated intermediate hash is aligned and merged with result for GHASH 4k+0 45 # EOR res_curr (4k+0), res_curr (4k+0), low_acc 521 ldp $input_l3, $input_h3, [$input_ptr, #48] @ AES block 4k+3 - load plaintext 526 rev64 $res0b, $res0b @ GHASH block 4k (only t0 is free) 527 rev64 $res2b, $res2b @ GHASH block 4k+2 (t0, t1, and t2 free) 529 aese $ctr2b, $rk0 \n aesmc $ctr2b, $ctr2b @ AES block 4k+6 - round 0 [all …]
|
/freebsd/sys/libkern/ |
H A D | jenkins_hash.c | 44 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 67 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that 150 const uint32_t *k, /* the key, an array of uint32_t values */ in jenkins_hash32() argument 162 a += k[0]; in jenkins_hash32() 163 b += k[1]; in jenkins_hash32() 164 c += k[2]; in jenkins_hash32() 167 k += 3; in jenkins_hash32() 173 case 3 : c+=k[2]; in jenkins_hash32() 174 case 2 : b+=k[1]; in jenkins_hash32() 175 case 1 : a+=k[0]; in jenkins_hash32() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | memmem.c | 38 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument 41 for (h+=2, k-=2; k; k--, hw = hw<<8 | *h++) in twobyte_memmem() 47 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument 51 for (h+=3, k-=3; k; k--, hw = (hw|*h++)<<8) in threebyte_memmem() 57 fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in fourbyte_memmem() argument 61 for (h+=4, k-=4; k; k--, hw = hw<<8 | *h++) in fourbyte_memmem() 83 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local 92 ip = -1; jp = 0; k = p = 1; in twoway_memmem() 93 while (jp+k<l) { in twoway_memmem() 94 if (n[ip+k] == n[jp+k]) { in twoway_memmem() [all …]
|
/freebsd/lib/libc/string/ |
H A D | memmem.c | 29 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument 32 for (h += 2, k -= 2; k; k--, hw = hw << 8 | *h++) in twobyte_memmem() 39 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument 43 for (h += 3, k -= 3; k; k--, hw = (hw | *h++) << 8) in threebyte_memmem() 50 fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in fourbyte_memmem() argument 54 for (h += 4, k -= 4; k; k--, hw = hw << 8 | *h++) in fourbyte_memmem() 79 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local 90 k = p = 1; in twoway_memmem() 91 while (jp + k < l) { in twoway_memmem() 92 if (n[ip + k] == n[jp + k]) { in twoway_memmem() [all …]
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_torus.c | 200 int i, j, k; member 787 unsigned i, j, k, cnt; in parse_torus() local 819 * Set things up so that t->sw[i][j][k] can point to the i,j,k switch. in parse_torus() 844 for (k = 0; k < t->z_sz; k++) in parse_torus() 845 t->sw[i][j][k] = NULL; in parse_torus() 867 unsigned i, j, k, n; in parse_port_order() local 887 for (k = 0; k < i; k++) in parse_port_order() 888 if (t->port_order[k] == j) in parse_port_order() 890 if (k >= i) in parse_port_order() 1286 unsigned k, p; in diagnose_fabric() local [all …]
|
/freebsd/usr.sbin/sa/tests/ |
H A D | v1-amd64-u.out | 1 0 0.000 cpu 0k mem 0 io accton 2 0 0.172 cpu 41k mem 0 io awk 3 0 0.000 cpu 140k mem 0 io time 4 0 3.031 cpu 45k mem 1 io egrep 5 0 0.000 cpu 0k mem 0 io time 6 0 0.250 cpu 42k mem 1087 io find 7 0 0.000 cpu 0k mem 0 io time 8 0 0.000 cpu 0k mem 0 io sleep 9 0 0.000 cpu 57k mem 0 io time 10 0 0.016 cpu 31k mem 16 io dd [all …]
|
H A D | v1-i386-u.out | 1 0 0.000 cpu 264k mem 0 io accton 2 0 0.453 cpu 41k mem 0 io awk 3 0 0.000 cpu 0k mem 0 io time 4 0 4.984 cpu 41k mem 28 io egrep 5 0 0.000 cpu 140k mem 0 io time 6 0 0.266 cpu 36k mem 3921 io find 7 0 0.000 cpu 0k mem 0 io time 8 0 0.000 cpu 0k mem 0 io sleep 9 0 0.000 cpu 0k mem 0 io time 10 0 0.016 cpu 25k mem 16 io dd [all …]
|
H A D | v2-amd64-u.out | 1 0 0.002 cpu 68k mem 0 io accton 2 0 0.163 cpu 35k mem 0 io awk 3 0 0.003 cpu 0k mem 0 io time 4 0 3.247 cpu 29k mem 26 io egrep 5 0 0.003 cpu 93k mem 0 io time 6 0 0.822 cpu 19k mem 4472 io find 7 0 0.003 cpu 0k mem 0 io time 8 0 0.002 cpu 0k mem 0 io sleep 9 0 0.004 cpu 88k mem 0 io time 10 0 0.076 cpu 18k mem 16 io dd [all …]
|
H A D | v2-i386-u.out | 1 0 0.001 cpu 0k mem 0 io accton 2 0 0.448 cpu 112k mem 0 io awk 3 0 0.001 cpu 0k mem 0 io time 4 0 6.680 cpu 110k mem 0 io egrep 5 0 0.001 cpu 0k mem 0 io time 6 0 0.248 cpu 108k mem 0 io find 7 0 0.001 cpu 0k mem 0 io time 8 0 0.001 cpu 0k mem 0 io sleep 9 0 0.001 cpu 0k mem 0 io time 10 0 0.025 cpu 103k mem 16 io dd [all …]
|
/freebsd/sys/crypto/openssl/aarch64/ |
H A D | aes-gcm-armv8_64.S | 308 ldp x23, x24, [x0, #48] //AES block 4k+3 - load plaintext 313 rev64 v4.16b, v4.16b //GHASH block 4k (only t0 is free) 314 rev64 v6.16b, v6.16b //GHASH block 4k+2 (t0, t1, and t2 free) 317 aesmc v2.16b, v2.16b //AES block 4k+6 - round 0 318 fmov d3, x10 //CTR block 4k+3 321 rev64 v5.16b, v5.16b //GHASH block 4k+1 (t0 and t1 free) 324 aesmc v1.16b, v1.16b //AES block 4k+5 - round 0 325 add w12, w12, #1 //CTR block 4k+3 326 fmov v3.d[1], x9 //CTR block 4k+3 329 aesmc v0.16b, v0.16b //AES block 4k+4 - round 0 [all …]
|
H A D | aes-gcm-armv8-unroll8_64.S | 223 aesmc v3.16b, v3.16b //AES block 8k+11 - round 8 225 aesmc v6.16b, v6.16b //AES block 8k+14 - round 8 227 aesmc v2.16b, v2.16b //AES block 8k+10 - round 8 230 aesmc v7.16b, v7.16b //AES block 8k+15 - round 8 232 aesmc v0.16b, v0.16b //AES block 8k+8 - round 8 235 aese v3.16b, v26.16b //AES block 8k+11 - round 9 237 aesmc v4.16b, v4.16b //AES block 8k+12 - round 8 238 aese v2.16b, v26.16b //AES block 8k+10 - round 9 241 aesmc v5.16b, v5.16b //AES block 8k+13 - round 8 243 aesmc v1.16b, v1.16b //AES block 8k+9 - round 8 [all …]
|
/freebsd/contrib/unbound/util/storage/ |
H A D | lookup3.c | 118 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 150 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that 233 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword() argument 245 a += k[0]; in hashword() 246 b += k[1]; in hashword() 247 c += k[2]; in hashword() 250 k += 3; in hashword() 256 case 3 : c+=k[2]; in hashword() 259 case 2 : b+=k[1]; in hashword() 262 case 1 : a+=k[0]; in hashword() [all …]
|
/freebsd/sys/net/ |
H A D | bpf_filter.c | 72 #define MINDEX(m, k) \ argument 76 while (k >= len) { \ 77 k -= len; \ 85 static u_int16_t m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err); 86 static u_int32_t m_xword(struct mbuf *m, bpf_u_int32 k, int *err); 89 m_xword(struct mbuf *m, bpf_u_int32 k, int *err) in m_xword() argument 96 while (k >= len) { in m_xword() 97 k -= len; in m_xword() 103 cp = mtod(m, u_char *) + k; in m_xword() 104 if (len - k >= 4) { in m_xword() [all …]
|
/freebsd/crypto/openssh/regress/ |
H A D | hostkey-agent.sh | 21 for k in $SSH_KEYTYPES ; do 22 ${SSHKEYGEN} -qt $k -f $OBJ/agent-key.$k -N '' || fatal "ssh-keygen $k" 24 -I localhost-with-alias $OBJ/agent-key.$k.pub || \ 25 fatal "sign $k" 26 ${SSHADD} -k $OBJ/agent-key.$k >/dev/null 2>&1 || \ 27 fatal "couldn't load key $OBJ/agent-key.$k" 29 rm $OBJ/agent-key.$k || fatal "couldn't rm $OBJ/agent-key.$k" 35 for k in $SSH_KEYTYPES ; do 36 verbose "key type $k" 38 echo "HostKeyAlgorithms $k" >> $OBJ/sshd_proxy [all …]
|
/freebsd/contrib/bearssl/src/ec/ |
H A D | ec_c25519_m64.c | 134 unsigned char k; in f255_add() 136 k = _addcarry_u64(0, a[0], b[0], &t0); in f255_add() 137 k = _addcarry_u64(k, a[1], b[1], &t1); in f255_add() 138 k = _addcarry_u64(k, a[2], b[2], &t2); in f255_add() 139 k = _addcarry_u64(k, a[3], b[3], &t3); in f255_add() 140 cc = (k << 1) + (t3 >> 63); in f255_add() 151 k = _addcarry_u64(0, t0, 19 * cc, &d[0]); in f255_add() 152 k = _addcarry_u64(k, t1, 0, &d[1]); in f255_add() 153 k = _addcarry_u64(k, t2, 0, &d[2]); in f255_add() 154 (void)_addcarry_u64(k, t3, 0, &d[3]); in f255_add() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/ |
H A D | aeskey.c | 82 #define ke4(k, i) \ argument 83 { k[4 * (i) + 4] = ss[0] ^= ls_box(ss[3], 3) ^ t_use(r, c)[i]; \ 84 k[4 * (i) + 5] = ss[1] ^= ss[0]; \ 85 k[4 * (i) + 6] = ss[2] ^= ss[1]; \ 86 k[4 * (i) + 7] = ss[3] ^= ss[2]; \ 116 #define kef6(k, i) \ argument 117 { k[6 * (i) + 6] = ss[0] ^= ls_box(ss[5], 3) ^ t_use(r, c)[i]; \ 118 k[6 * (i) + 7] = ss[1] ^= ss[0]; \ 119 k[6 * (i) + 8] = ss[2] ^= ss[1]; \ 120 k[6 * (i) + 9] = ss[3] ^= ss[2]; \ [all …]
|
/freebsd/crypto/krb5/src/lib/crypto/builtin/aes/ |
H A D | aeskey.c | 85 #define ke4(k,i) \ argument 86 { k[4*(i)+4] = ss[0] ^= ls_box(ss[3],3) ^ t_use(r,c)[i]; \ 87 k[4*(i)+5] = ss[1] ^= ss[0]; \ 88 k[4*(i)+6] = ss[2] ^= ss[1]; \ 89 k[4*(i)+7] = ss[3] ^= ss[2]; \ 128 #define kef6(k,i) \ argument 129 { k[6*(i)+ 6] = ss[0] ^= ls_box(ss[5],3) ^ t_use(r,c)[i]; \ 130 k[6*(i)+ 7] = ss[1] ^= ss[0]; \ 131 k[6*(i)+ 8] = ss[2] ^= ss[1]; \ 132 k[6*(i)+ 9] = ss[3] ^= ss[2]; \ [all …]
|