Home
last modified time | relevance | path

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

12345678910>>...33

/f-stack/freebsd/libkern/
H A Djenkins_hash.c45 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
249 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in jenkins_hash()
250 case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in jenkins_hash()
251 case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break; in jenkins_hash()
252 case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break; in jenkins_hash()
253 case 8 : b+=k[1]; a+=k[0]; break; in jenkins_hash()
402 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in jenkins_hash()
403 case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break; in jenkins_hash()
404 case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break; in jenkins_hash()
405 case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break; in jenkins_hash()
[all …]
H A Dmurmur3_32.c48 uint32_t hash, k; in murmur3_32_hash() local
62 k *= 0xcc9e2d51; in murmur3_32_hash()
63 k = rol32(k, 15); in murmur3_32_hash()
64 k *= 0x1b873593; in murmur3_32_hash()
65 hash ^= k; in murmur3_32_hash()
74 k = 0; in murmur3_32_hash()
81 k |= bytes[0]; in murmur3_32_hash()
83 k = rol32(k, 15); in murmur3_32_hash()
85 hash ^= k; in murmur3_32_hash()
115 k = rol32(k, 15); in murmur3_32_hash32()
[all …]
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Drte_jhash.h39 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument
109 c += k[2]; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
111 c += k[2] & LOWER24b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
113 c += k[2] & LOWER16b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
115 c += k[2] & LOWER8b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
117 b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
141 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
142 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
143 c += BIT_SHIFT(k[2], k[3], s); in __rte_jhash_2hashes()
153 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
[all …]
/f-stack/dpdk/lib/librte_hash/
H A Drte_jhash.h45 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument
115 c += k[2]; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
117 c += k[2] & LOWER24b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
119 c += k[2] & LOWER16b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
121 c += k[2] & LOWER8b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
123 b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
147 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
148 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
149 c += BIT_SHIFT(k[2], k[3], s); in __rte_jhash_2hashes()
159 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
[all …]
/f-stack/freebsd/contrib/openzfs/module/icp/asm-x86_64/aes/
H A Daeskey.c123 { kef6(k, i); \
165 { kef8(k, i); \
278 k[v(40, (4 * (i)) + 4)] = ss[4] ^= k[v(40, (4 * (i)))]; \
279 k[v(40, (4 * (i)) + 5)] = ss[4] ^= k[v(40, (4 * (i)) + 1)]; \
280 k[v(40, (4 * (i)) + 6)] = ss[4] ^= k[v(40, (4 * (i)) + 2)]; \
281 k[v(40, (4 * (i)) + 7)] = ss[4] ^= k[v(40, (4 * (i)) + 3)]; \
307 k[v(40, (4 * (i)) + 4)] = ss[4] ^= k[v(40, (4 * (i)))]; \
367 { k6ef(k, i); \
385 k[v(48, (6 * (i)) + 6)] = ss[6] ^= k[v(48, (6 * (i)))]; \
454 { k8ef(k, i); \
[all …]
/f-stack/freebsd/net/
H A Dbpf_filter.c102 k -= len; in m_xword()
151 k -= len; in m_xhalf()
211 k = pc->k; in bpf_filter()
235 k = pc->k; in bpf_filter()
252 k = pc->k; in bpf_filter()
279 k = X + pc->k; in bpf_filter()
280 if (pc->k > buflen || X > buflen - pc->k || in bpf_filter()
304 k = X + pc->k; in bpf_filter()
324 k = X + pc->k; in bpf_filter()
325 if (pc->k >= buflen || X >= buflen - pc->k) { in bpf_filter()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_lpm6_data.h1047 int k; in mask_ip6_prefix() local
1050 for (k = 0; k < 16; k++) { in mask_ip6_prefix()
1052 ip_out[k] = ip_in[k]; in mask_ip6_prefix()
1056 ip_out[k] = (ip_in[k] & mask_in) in mask_ip6_prefix()
1071 int k; in check_lpm6_rule() local
1074 for (k = 0; k < 16; k++) { in check_lpm6_rule()
1076 if (ip[k] != ip_rule[k]) in check_lpm6_rule()
1080 if ((ip[k] & mask) == (ip_rule[k] & mask)) in check_lpm6_rule()
1138 k++; in generate_large_ips_table()
1141 k = 0; in generate_large_ips_table()
[all …]
H A Dtest_ring_stress.c11 uint32_t i, k; in run_test() local
13 for (i = 0, k = 0; i != test->nb_case; i++) { in run_test()
19 k += (rc == 0); in run_test()
29 return k; in run_test()
35 uint32_t n, k; in test_ring_stress() local
38 k = 0; in test_ring_stress()
41 k += run_test(&test_ring_mpmc_stress); in test_ring_stress()
44 k += run_test(&test_ring_rts_stress); in test_ring_stress()
47 k += run_test(&test_ring_hts_stress); in test_ring_stress()
62 n, k, n - k); in test_ring_stress()
[all …]
/f-stack/dpdk/lib/librte_table/
H A Drte_table_hash_func.h61 uint64_t *k = key; in rte_table_hash_crc_key8() local
75 uint64_t *k = key; in rte_table_hash_crc_key16() local
79 k0 = k[0] & m[0]; in rte_table_hash_crc_key16()
94 uint64_t *k = key; in rte_table_hash_crc_key24() local
98 k0 = k[0] & m[0]; in rte_table_hash_crc_key24()
99 k2 = k[2] & m[2]; in rte_table_hash_crc_key24()
120 k0 = k[0] & m[0]; in rte_table_hash_crc_key32()
121 k2 = k[2] & m[2]; in rte_table_hash_crc_key32()
146 k0 = k[0] & m[0]; in rte_table_hash_crc_key40()
147 k2 = k[2] & m[2]; in rte_table_hash_crc_key40()
[all …]
/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dph.c180 unsigned i, j, k; in TEST_BEGIN() local
208 for (k = 0; k < j; k++) { in TEST_BEGIN()
209 nodes[k].magic = NODE_MAGIC; in TEST_BEGIN()
210 nodes[k].key = bag[k]; in TEST_BEGIN()
214 for (k = 0; k < j; k++) { in TEST_BEGIN()
233 for (k = 0; k < j; k++) { in TEST_BEGIN()
242 for (k = j; k > 0; k--) { in TEST_BEGIN()
250 for (k = 0; k < j; k++) { in TEST_BEGIN()
264 for (k = 0; k < j; k++) { in TEST_BEGIN()
280 for (k = 0; k < j; k++) { in TEST_BEGIN()
[all …]
/f-stack/app/redis-5.0.5/tests/support/
H A Dutil.tcl158 set k [{*}$r randomkey]
159 if {$k eq {}} {
163 return $k
171 set k [randomKey]
195 set t [{*}$r type $k]
199 {*}$r set $k $v
201 {*}$r lpush $k $v
203 {*}$r sadd $k $v
205 {*}$r zadd $k $d $v
209 {*}$r del $k
[all …]
/f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_box/
H A Dcrypto_box_easy.c17 return crypto_secretbox_detached(c, mac, m, mlen, n, k); in crypto_box_detached_afternm()
26 unsigned char k[crypto_box_BEFORENMBYTES]; in crypto_box_detached() local
30 if (crypto_box_beforenm(k, pk, sk) != 0) { in crypto_box_detached()
34 sodium_memzero(k, sizeof k); in crypto_box_detached()
42 const unsigned char *k) in crypto_box_easy_afternm() argument
48 k); in crypto_box_easy_afternm()
79 unsigned char k[crypto_box_BEFORENMBYTES]; in crypto_box_open_detached() local
82 if (crypto_box_beforenm(k, pk, sk) != 0) { in crypto_box_open_detached()
86 sodium_memzero(k, sizeof k); in crypto_box_open_detached()
94 const unsigned char *k) in crypto_box_open_easy_afternm() argument
[all …]
/f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/
H A Dbox_curve25519xchacha20poly1305.c41 crypto_box_curve25519xchacha20poly1305_beforenm(unsigned char *k, in crypto_box_curve25519xchacha20poly1305_beforenm() argument
51 return crypto_core_hchacha20(k, zero, s, NULL); in crypto_box_curve25519xchacha20poly1305_beforenm()
57 unsigned long long mlen, const unsigned char *n, const unsigned char *k) in crypto_box_curve25519xchacha20poly1305_detached_afternm() argument
68 unsigned char k[crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES]; in crypto_box_curve25519xchacha20poly1305_detached() local
73 if (crypto_box_curve25519xchacha20poly1305_beforenm(k, pk, sk) != 0) { in crypto_box_curve25519xchacha20poly1305_detached()
78 sodium_memzero(k, sizeof k); in crypto_box_curve25519xchacha20poly1305_detached()
116 k); in crypto_box_curve25519xchacha20poly1305_open_detached_afternm()
132 m, c, mac, clen, n, k); in crypto_box_curve25519xchacha20poly1305_open_detached()
133 sodium_memzero(k, sizeof k); in crypto_box_curve25519xchacha20poly1305_open_detached()
141 const unsigned char *n, const unsigned char *k) in crypto_box_curve25519xchacha20poly1305_open_easy_afternm() argument
[all …]
/f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/
H A Dbox_curve25519xsalsa20poly1305.c35 crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char *k, in crypto_box_curve25519xsalsa20poly1305_beforenm() argument
45 return crypto_core_hsalsa20(k, zero, s, NULL); in crypto_box_curve25519xsalsa20poly1305_beforenm()
53 const unsigned char *k) in crypto_box_curve25519xsalsa20poly1305_afternm() argument
55 return crypto_secretbox_xsalsa20poly1305(c, m, mlen, n, k); in crypto_box_curve25519xsalsa20poly1305_afternm()
63 const unsigned char *k) in crypto_box_curve25519xsalsa20poly1305_open_afternm() argument
65 return crypto_secretbox_xsalsa20poly1305_open(m, c, clen, n, k); in crypto_box_curve25519xsalsa20poly1305_open_afternm()
75 unsigned char k[crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES]; in crypto_box_curve25519xsalsa20poly1305() local
78 if (crypto_box_curve25519xsalsa20poly1305_beforenm(k, pk, sk) != 0) { in crypto_box_curve25519xsalsa20poly1305()
82 sodium_memzero(k, sizeof k); in crypto_box_curve25519xsalsa20poly1305()
92 unsigned char k[crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES]; in crypto_box_curve25519xsalsa20poly1305_open() local
[all …]
/f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_stream/chacha20/
H A Dstream_chacha20.c56 return implementation->stream(c, clen, n, k); in crypto_stream_chacha20()
63 return implementation->stream_ietf(c, clen, n, k); in crypto_stream_chacha20_ietf()
70 const unsigned char *k) in crypto_stream_chacha20_xor_ic() argument
72 return implementation->stream_xor_ic(c, m, mlen, n, ic, k); in crypto_stream_chacha20_xor_ic()
79 const unsigned char *k) in crypto_stream_chacha20_ietf_xor_ic() argument
81 return implementation->stream_ietf_xor_ic(c, m, mlen, n, ic, k); in crypto_stream_chacha20_ietf_xor_ic()
87 const unsigned char *k) in crypto_stream_chacha20_xor() argument
89 return implementation->stream_xor_ic(c, m, mlen, n, 0U, k); in crypto_stream_chacha20_xor()
95 const unsigned char *k) in crypto_stream_chacha20_ietf_xor() argument
103 randombytes_buf(k, crypto_stream_chacha20_ietf_KEYBYTES); in crypto_stream_chacha20_ietf_keygen()
[all …]
/f-stack/dpdk/drivers/net/octeontx2/
H A Dotx2_ethdev_debug.c542 uint8_t k = 0; in prepare_nix_tm_reg_dump() local
546 reg[k] = NIX_AF_SMQX_CFG(schq); in prepare_nix_tm_reg_dump()
558 reg[k] = NIX_AF_MDQX_PIR(schq); in prepare_nix_tm_reg_dump()
703 return k; in prepare_nix_tm_reg_dump()
717 int hw_lvl, j, k, rc; in otx2_nix_tm_dump() local
765 if (!k) in otx2_nix_tm_dump()
771 req->num_regs = k; in otx2_nix_tm_dump()
775 for (j = 0; j < k; j++) in otx2_nix_tm_dump()
791 if (!k) in otx2_nix_tm_dump()
798 req->num_regs = k; in otx2_nix_tm_dump()
[all …]
/f-stack/dpdk/examples/performance-thread/common/
H A Dlthread_tls.c114 if (k > LTHREAD_MAX_KEYS) in lthread_key_delete()
134 int i, k; in _lthread_tls_destroy() local
140 for (k = 1; k < LTHREAD_MAX_KEYS; k++) { in _lthread_tls_destroy()
148 if (lt->tls->data[k] == NULL) in _lthread_tls_destroy()
152 data = lt->tls->data[k]; in _lthread_tls_destroy()
153 lt->tls->data[k] = NULL; in _lthread_tls_destroy()
158 key_table[k].destructor(data); in _lthread_tls_destroy()
168 *lthread_getspecific(unsigned int k) in lthread_getspecific() argument
172 if (k < LTHREAD_MAX_KEYS) in lthread_getspecific()
173 res = THIS_LTHREAD->tls->data[k]; in lthread_getspecific()
[all …]
/f-stack/app/redis-5.0.5/utils/
H A Dredis-sha1.rb18 r.keys('*').sort.each{|k|
19 vtype = r.type?(k)
22 sha1 = Digest::SHA1.hexdigest(sha1+k)
23 sha1 = Digest::SHA1.hexdigest(sha1+r.get(k))
25 len = r.llen(k)
27 sha1 = Digest::SHA1.hexdigest(sha1+k)
31 len = r.scard(k)
33 sha1 = Digest::SHA1.hexdigest(sha1+k)
37 len = r.zcard(k)
39 sha1 = Digest::SHA1.hexdigest(sha1+k)
[all …]
/f-stack/app/redis-5.0.5/src/
H A Devict.c163 int j, k, count; in evictionPoolPopulate() local
208 k = 0; in evictionPoolPopulate()
211 pool[k].idle < idle) k++; in evictionPoolPopulate()
216 } else if (k < EVPOOL_SIZE && pool[k].key == NULL) { in evictionPoolPopulate()
227 memmove(pool+k+1,pool+k, in evictionPoolPopulate()
232 k--; in evictionPoolPopulate()
252 pool[k].key = pool[k].cached; in evictionPoolPopulate()
254 pool[k].idle = idle; in evictionPoolPopulate()
255 pool[k].dbid = dbid; in evictionPoolPopulate()
501 for (k = EVPOOL_SIZE-1; k >= 0; k--) { in freeMemoryIfNeeded()
[all …]
/f-stack/freebsd/arm/allwinner/clkng/
H A Daw_clk_mipi.c125 uint32_t n, k, m; in aw_clk_mipi_find_best() local
133 for (k = aw_clk_factor_get_min(&sc->k); k <= aw_clk_factor_get_max(&sc->k); k++) { in aw_clk_mipi_find_best()
185 k = aw_clk_factor_get_value(&sc->k, best_k); in aw_clk_mipi_set_freq()
191 val |= k << sc->k.shift; in aw_clk_mipi_set_freq()
228 k = aw_clk_get_factor(val, &sc->k); in aw_clk_mipi_recalc()
263 sc->k.shift = clkdef->k.shift; in aw_clk_mipi_register()
264 sc->k.width = clkdef->k.width; in aw_clk_mipi_register()
265 sc->k.mask = ((1 << sc->k.width) - 1) << sc->k.shift; in aw_clk_mipi_register()
266 sc->k.value = clkdef->k.value; in aw_clk_mipi_register()
267 sc->k.flags = clkdef->k.flags; in aw_clk_mipi_register()
[all …]
/f-stack/freebsd/net80211/
H A Dieee80211_crypto_none.c83 none_detach(struct ieee80211_key *k) in none_detach() argument
85 (void) k; in none_detach()
89 none_setkey(struct ieee80211_key *k) in none_setkey() argument
91 (void) k; in none_setkey()
96 none_setiv(struct ieee80211_key *k, uint8_t *ivp) in none_setiv() argument
101 none_encap(struct ieee80211_key *k, struct mbuf *m) in none_encap() argument
103 struct ieee80211vap *vap = k->wk_private; in none_encap()
108 keyid = ieee80211_crypto_get_keyid(vap, k); in none_encap()
124 struct ieee80211vap *vap = k->wk_private; in none_decap()
144 struct ieee80211vap *vap = k->wk_private; in none_enmic()
[all …]
H A Dieee80211_crypto_wep.c109 wep_detach(struct ieee80211_key *k) in wep_detach() argument
119 wep_setkey(struct ieee80211_key *k) in wep_setkey() argument
121 return k->wk_keylen >= 40/NBBY; in wep_setkey()
212 wep_setiv(k, ivp); in wep_encap()
218 !wep_encrypt(k, m, hdrlen)) in wep_encap()
353 uint32_t i, j, k, crc; in wep_encrypt() local
387 for (k = 0; k < buflen; k++) { in wep_encrypt()
417 for (k = 0; k < IEEE80211_WEP_CRCLEN; k++) { in wep_encrypt()
436 uint32_t i, j, k, crc; in wep_decrypt() local
470 for (k = 0; k < buflen; k++) { in wep_decrypt()
[all …]
/f-stack/dpdk/lib/librte_ipsec/
H A Desp_outb.c242 k = 0; in esp_outb_tun_prepare()
256 k++; in esp_outb_tun_prepare()
265 if (k != n && k != 0) in esp_outb_tun_prepare()
382 k = 0; in esp_outb_trs_prepare()
399 k++; in esp_outb_trs_prepare()
408 if (k != n && k != 0) in esp_outb_trs_prepare()
491 iv[k].va = ivbuf[k]; in cpu_outb_pkt_prepare()
501 if (k != n && k != 0) in cpu_outb_pkt_prepare()
543 k = 0; in esp_outb_sqh_process()
633 if (k != n && k != 0) in inline_outb_tun_pkt_process()
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_murmurhash.c14 uint32_t h, k; in ngx_murmur_hash2() local
19 k = data[0]; in ngx_murmur_hash2()
20 k |= data[1] << 8; in ngx_murmur_hash2()
21 k |= data[2] << 16; in ngx_murmur_hash2()
22 k |= data[3] << 24; in ngx_murmur_hash2()
24 k *= 0x5bd1e995; in ngx_murmur_hash2()
25 k ^= k >> 24; in ngx_murmur_hash2()
26 k *= 0x5bd1e995; in ngx_murmur_hash2()
29 h ^= k; in ngx_murmur_hash2()
/f-stack/freebsd/contrib/device-tree/Bindings/
H A Dtrivial-devices.yaml131 # Microchip 7-bit Single I2C Digital POT (5k)
133 # Microchip 7-bit Single I2C Digital POT (10k)
135 # Microchip 7-bit Single I2C Digital POT (50k)
137 # Microchip 7-bit Single I2C Digital POT (100k)
139 # Microchip 7-bit Single I2C Digital POT (5k)
141 # Microchip 7-bit Single I2C Digital POT (10k)
143 # Microchip 7-bit Single I2C Digital POT (50k)
145 # Microchip 7-bit Single I2C Digital POT (100k)
147 # Microchip 7-bit Single I2C Digital POT (5k)
149 # Microchip 7-bit Single I2C Digital POT (10k)
[all …]

12345678910>>...33