Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 2548) sorted by relevance

12345678910>>...102

/freebsd/tools/regression/ccd/layout/
H A Dccd0.sh16 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/sys/libkern/
H A Djenkins_hash.c44 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
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()
222 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in jenkins_hash() local
[all …]
/freebsd/crypto/openssl/crypto/camellia/
H A Dcamellia.c288 int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey, KEY_TABLE_TYPE k) in Camellia_Ekeygen() argument
292 k[0] = s0 = GETU32(rawKey); in Camellia_Ekeygen()
293 k[1] = s1 = GETU32(rawKey + 4); in Camellia_Ekeygen()
294 k[2] = s2 = GETU32(rawKey + 8); in Camellia_Ekeygen()
295 k[3] = s3 = GETU32(rawKey + 12); in Camellia_Ekeygen()
298 k[8] = s0 = GETU32(rawKey + 16); in Camellia_Ekeygen()
299 k[9] = s1 = GETU32(rawKey + 20); in Camellia_Ekeygen()
301 k[10] = s2 = ~s0; in Camellia_Ekeygen()
302 k[11] = s3 = ~s1; in Camellia_Ekeygen()
304 k[10] = s2 = GETU32(rawKey + 24); in Camellia_Ekeygen()
[all …]
/freebsd/tools/cam/
H A Dmps.d1 inline string scsi_op[int k] =
2 k == 0x00 ? "TEST UNIT READY" :
3 k == 0x01 ? "REZERO UNIT" :
4 k == 0x03 ? "REQUEST SENSE" :
5 k == 0x04 ? "FORMAT UNIT" :
6 k == 0x05 ? "READ BLOCK LIMITS" :
7 k == 0x07 ? "REASSIGN BLOCKS" :
8 k == 0x08 ? "READ(6)" :
9 k == 0x0a ? "WRITE(6)" :
10 k == 0x0b ? "SEEK(6)" :
[all …]
H A Dmpr.d1 inline string scsi_op[int k] =
2 k == 0x00 ? "TEST UNIT READY" :
3 k == 0x01 ? "REZERO UNIT" :
4 k == 0x03 ? "REQUEST SENSE" :
5 k == 0x04 ? "FORMAT UNIT" :
6 k == 0x05 ? "READ BLOCK LIMITS" :
7 k == 0x07 ? "REASSIGN BLOCKS" :
8 k == 0x08 ? "READ(6)" :
9 k == 0x0a ? "WRITE(6)" :
10 k == 0x0b ? "SEEK(6)" :
[all …]
/freebsd/contrib/unbound/util/storage/
H A Dlookup3.c118 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
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()
285 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword2() argument
[all …]
/freebsd/sys/contrib/dpdk_rte_lpm/
H A Drte_jhash.h39 #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 Dprint.c94 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/openssh/openbsd-compat/
H A Dmemmem.c38 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 Dmemmem.c29 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 …]
H A Dstrstr.c76 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local
89 k = p = 1; in twoway_strstr()
90 while (jp + k < l) { in twoway_strstr()
91 if (n[ip + k] == n[jp + k]) { in twoway_strstr()
92 if (k == p) { in twoway_strstr()
94 k = 1; in twoway_strstr()
96 k++; in twoway_strstr()
97 } else if (n[ip + k] > n[jp + k]) { in twoway_strstr()
98 jp += k; in twoway_strstr()
99 k = 1; in twoway_strstr()
[all …]
/freebsd/lib/virtual_oss/bt/cosdata-gen/
H A Dcosdata.c79 int k; in main() local
86 for (k = 0; k < AC(sbc8_coeffs); k++) { in main()
89 printf("%0.12ff, ", (float)sbc8_coeffs[k]); in main()
96 for (k = 0; k < AC(sbc4_coeffs); k++) { in main()
99 printf("%0.12ff, ", (float)sbc4_coeffs[k]); in main()
107 for (k = 0; k < 16; k++) { in main()
108 S[i][k] = cosf((float)((i + 0.5) * (k - 4) * (M_PI / 8.0))); in main()
112 if (k == 0) in main()
114 printf("%0.12ff, ", S[i][k]); in main()
115 if (k == 15) in main()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/
H A Daeskey.c82 #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/openssl/util/
H A Dmkinstallvars.pl43 (my $k, my $v) = m|^([^=]*)=(.*)$|;
44 $keys{$k} = 1;
45 push @{$values{$k}}, $v;
60 foreach my $k (sort keys %all) {
61 warn "No value given for $k\n" unless $keys{$k};
63 foreach my $k (sort keys %keys) {
64 warn "Unknown variable $k\n" unless $all{$k};
69 foreach my $k (@absolutes) {
70 my $v = $values{$k} || [ '.' ];
71 die "Can't have more than one $k\n" if scalar @$v > 1;
[all …]
/freebsd/crypto/openssl/crypto/chacha/asm/
H A Dchacha-ia64.pl20 my @k = map("r$_",(16..31));
46 ADDP @k[11]=4,$key
57 { .mlx; ld4 @k[4]=[$key],8
58 movl @k[0]=0x61707865 }
59 { .mlx; ld4 @k[5]=[@k[11]],8
60 movl @k[1]=0x3320646e };;
61 { .mlx; ld4 @k[6]=[$key],8
62 movl @k[2]=0x79622d32 }
63 { .mlx; ld4 @k[7]=[@k[11]],8
64 movl @k[3]=0x6b206574 };;
[all …]
/freebsd/sys/net/
H A Dbpf_filter.c72 #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/contrib/bearssl/src/ec/
H A Dec_c25519_m64.c134 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/crypto/krb5/src/lib/crypto/builtin/aes/
H A Daeskey.c85 #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 …]
/freebsd/sbin/ipf/ipf/
H A Dbpf_filter.c112 m_xword(mb_t *m, int k, int *err) in m_xword() argument
118 MINDEX(len, m, k); in m_xword()
119 cp = MTOD(m, u_char *) + k; in m_xword()
120 if (len - k >= 4) { in m_xword()
125 if (m0 == NULL || M_LEN(m0) + len - k < 4) in m_xword()
129 switch (len - k) { in m_xword()
146 m_xhalf(mb_t *m, int k, int *err) in m_xhalf() argument
152 MINDEX(len, m, k); in m_xhalf()
153 cp = MTOD(m, u_char *) + k; in m_xhalf()
154 if (len - k >= 2) { in m_xhalf()
[all …]
/freebsd/contrib/libpcap/
H A Dbpf_filter.c96 register bpf_u_int32 k; in pcapint_filter_with_aux_data() local
114 return (u_int)pc->k; in pcapint_filter_with_aux_data()
120 k = pc->k; in pcapint_filter_with_aux_data()
121 if (k > buflen || sizeof(int32_t) > buflen - k) { in pcapint_filter_with_aux_data()
124 A = EXTRACT_LONG(&p[k]); in pcapint_filter_with_aux_data()
128 k = pc->k; in pcapint_filter_with_aux_data()
129 if (k > buflen || sizeof(int16_t) > buflen - k) { in pcapint_filter_with_aux_data()
132 A = EXTRACT_SHORT(&p[k]); in pcapint_filter_with_aux_data()
143 switch (pc->k) { in pcapint_filter_with_aux_data()
159 k = pc->k; in pcapint_filter_with_aux_data()
[all …]
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_torus.c200 int i, j, k; member
787 unsigned i, j, k, cnt; in parse_torus() local
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
1291 for (k = 0; k < f->link_cnt; k++) { in diagnose_fabric()
[all …]
/freebsd/sys/dev/rtwn/
H A Dif_rtwn_cam.c110 rtwn_key_alloc(struct ieee80211vap *vap, struct ieee80211_key *k, in rtwn_key_alloc() argument
116 if (ieee80211_is_key_global(vap, k)) { in rtwn_key_alloc()
117 *keyix = ieee80211_crypto_get_key_wepidx(vap, k); in rtwn_key_alloc()
119 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc()
141 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc()
173 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc()
183 rtwn_key_set_cb0(struct rtwn_softc *sc, const struct ieee80211_key *k) in rtwn_key_set_cb0() argument
190 k->wk_keyix < IEEE80211_WEP_NKID) in rtwn_key_set_cb0()
191 keyid = k->wk_keyix; in rtwn_key_set_cb0()
196 switch (k->wk_cipher->ic_cipher) { in rtwn_key_set_cb0()
[all …]
/freebsd/crypto/openssh/regress/
H A Dhostkey-agent.sh21 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/usr.sbin/sa/tests/
H A Dv1-amd64-u.out1 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 Dv1-i386-u.out1 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 …]

12345678910>>...102