Searched refs:hash (Results 101 - 125 of 1191) sorted by relevance

1234567891011>>

/linux-master/crypto/
H A Dmd5.c18 #include <crypto/internal/hash.h>
40 static void md5_transform(__u32 *hash, __u32 const *in) argument
44 a = hash[0];
45 b = hash[1];
46 c = hash[2];
47 d = hash[3];
117 hash[0] += a;
118 hash[1] += b;
119 hash[2] += c;
120 hash[
[all...]
H A Dsm3_generic.c3 * SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and
4 * described at https://tools.ietf.org/html/draft-shen-sm3-hash-01
11 #include <crypto/internal/hash.h>
44 unsigned int len, u8 *hash)
50 sm3_final(sctx, hash);
43 crypto_sm3_finup(struct shash_desc *desc, const u8 *data, unsigned int len, u8 *hash) argument
/linux-master/arch/powerpc/mm/book3s64/
H A Dhash_4k.c29 unsigned long vpn, hash, slot; local
82 hash = hpt_hash(vpn, shift, ssize);
85 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP;
87 /* Insert into the hash table, primary slot */
94 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP;
102 hpte_group = (hash & htab_hash_mask) *
H A Dhash_64k.c47 unsigned long vpn, hash, slot, gslot; local
98 * Check if the pte was already inserted into the hash table
105 * On hash insert failure we use old pte value and we don't
157 hash = hpt_hash(vpn, shift, ssize);
159 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP;
161 /* Insert into the hash table, primary slot */
170 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP;
198 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP;
236 unsigned long vpn, hash, slot; local
292 hash
[all...]
/linux-master/kernel/trace/
H A Dftrace.c35 #include <linux/hash.h>
70 /* hash bits for specific function selection */
431 struct hlist_head *hash; member in struct:ftrace_profile_stat
608 memset(stat->hash, 0,
675 if (stat->hash) {
683 * functions are hit. We'll make a hash of 1024 items.
687 stat->hash = kcalloc(size, sizeof(struct hlist_head), GFP_KERNEL);
689 if (!stat->hash)
694 kfree(stat->hash);
695 stat->hash
1129 ftrace_hash_key(struct ftrace_hash *hash, unsigned long ip) argument
1139 __ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip) argument
1166 ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip) argument
1174 __add_hash_entry(struct ftrace_hash *hash, struct ftrace_func_entry *entry) argument
1187 add_hash_entry(struct ftrace_hash *hash, unsigned long ip) argument
1202 free_hash_entry(struct ftrace_hash *hash, struct ftrace_func_entry *entry) argument
1211 remove_hash_entry(struct ftrace_hash *hash, struct ftrace_func_entry *entry) argument
1218 ftrace_hash_clear(struct ftrace_hash *hash) argument
1259 free_ftrace_hash(struct ftrace_hash *hash) argument
1270 struct ftrace_hash *hash; local
1276 free_ftrace_hash_rcu(struct ftrace_hash *hash) argument
1297 struct ftrace_hash *hash; local
1348 alloc_and_copy_ftrace_hash(int size_bits, struct ftrace_hash *hash) argument
1479 hash_contains_ip(unsigned long ip, struct ftrace_ops_hash *hash) argument
1509 struct ftrace_ops_hash hash; local
1701 struct ftrace_hash *hash; local
2045 struct ftrace_hash *hash = ops->func_hash->filter_hash; local
2056 struct ftrace_hash *hash = ops->func_hash->filter_hash; local
3343 struct ftrace_hash *hash; member in struct:ftrace_iterator
3358 struct ftrace_hash *hash; local
4020 struct ftrace_hash *hash; local
4177 enter_record(struct ftrace_hash *hash, struct dyn_ftrace *rec, int clear_filter) argument
4200 add_rec_by_index(struct ftrace_hash *hash, struct ftrace_glob *func_g, int clear_filter) argument
4286 match_records(struct ftrace_hash *hash, char *func, int len, char *mod) argument
4342 ftrace_match_records(struct ftrace_hash *hash, char *buff, int len) argument
4378 ftrace_hash_move_and_update_ops(struct ftrace_ops *ops, struct ftrace_hash **orig_hash, struct ftrace_hash *hash, int enable) argument
4560 ftrace_mod_callback(struct trace_array *tr, struct ftrace_hash *hash, char *func_orig, char *cmd, char *module, int enable) argument
4624 struct ftrace_hash hash; member in struct:ftrace_func_mapper
4634 struct ftrace_hash *hash; local
4805 struct ftrace_hash *hash; local
4951 struct ftrace_hash *hash = NULL; local
5132 struct ftrace_hash *hash = iter->hash; local
5220 __ftrace_match_addr(struct ftrace_hash *hash, unsigned long ip, int remove) argument
5241 ftrace_match_addr(struct ftrace_hash *hash, unsigned long *ips, unsigned int cnt, int remove) argument
5266 struct ftrace_hash *hash; local
5342 remove_direct_functions_hash(struct ftrace_hash *hash, unsigned long addr) argument
5390 struct ftrace_hash *hash, *new_hash = NULL, *free_hash = NULL; local
5490 struct ftrace_hash *hash = ops->func_hash->filter_hash; local
5516 struct ftrace_hash *hash; local
5825 struct ftrace_hash *hash; local
5991 struct ftrace_hash *hash; member in struct:ftrace_graph_data
6278 ftrace_graph_set_hash(struct ftrace_hash *hash, char *buffer) argument
6701 clear_mod_from_hash(struct ftrace_page *pg, struct ftrace_hash *hash) argument
7093 clear_func_from_hash(struct ftrace_init_func *func, struct ftrace_hash *hash) argument
7928 struct ftrace_hash *hash; local
7977 struct ftrace_hash *hash; local
[all...]
/linux-master/net/ipv4/
H A Dtcp_metrics.c10 #include <linux/hash.h>
26 struct net *net, unsigned int hash);
166 unsigned int hash)
178 tm = __tcp_get_metrics(saddr, daddr, net, hash);
191 oldest = deref_locked(tcp_metrics_hash[hash].chain);
213 tm->tcpm_next = tcp_metrics_hash[hash].chain;
214 rcu_assign_pointer(tcp_metrics_hash[hash].chain, tm);
233 struct net *net, unsigned int hash)
238 for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm;
254 unsigned int hash; local
163 tcpm_new(struct dst_entry *dst, struct inetpeer_addr *saddr, struct inetpeer_addr *daddr, unsigned int hash) argument
231 __tcp_get_metrics(const struct inetpeer_addr *saddr, const struct inetpeer_addr *daddr, struct net *net, unsigned int hash) argument
297 unsigned int hash; local
797 __parse_nl_addr(struct genl_info *info, struct inetpeer_addr *addr, unsigned int *hash, int optional, int v4, int v6) argument
824 parse_nl_addr(struct genl_info *info, struct inetpeer_addr *addr, unsigned int *hash, int optional) argument
843 unsigned int hash; local
931 unsigned int hash; local
[all...]
/linux-master/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c45 static unsigned long __init rotate_xor(unsigned long hash, const void *area, argument
51 for (i = 0; i < size / sizeof(hash); i++) {
53 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7);
54 hash ^= ptr[i];
57 return hash;
66 unsigned long hash = 0; local
69 hash
[all...]
/linux-master/net/batman-adv/
H A Dbridge_loop_avoidance.c45 #include "hash.h"
61 * @data: data to hash
62 * @size: size of the hash table
64 * Return: the hash index of the claim
69 u32 hash = 0; local
71 hash = jhash(&claim->addr, sizeof(claim->addr), hash);
72 hash = jhash(&claim->vid, sizeof(claim->vid), hash);
74 return hash
87 u32 hash = 0; local
221 struct batadv_hashtable *hash = bat_priv->bla.claim_hash; local
261 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; local
300 struct batadv_hashtable *hash; local
595 struct batadv_hashtable *hash; local
1224 struct batadv_hashtable *hash; local
1279 struct batadv_hashtable *hash; local
1334 struct batadv_hashtable *hash; local
1432 struct batadv_hashtable *hash; local
1735 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; local
2194 batadv_bla_claim_dump_bucket(struct sk_buff *msg, u32 portid, struct netlink_callback *cb, struct batadv_hard_iface *primary_if, struct batadv_hashtable *hash, unsigned int bucket, int *idx_skip) argument
2238 struct batadv_hashtable *hash; local
2364 batadv_bla_backbone_dump_bucket(struct sk_buff *msg, u32 portid, struct netlink_callback *cb, struct batadv_hard_iface *primary_if, struct batadv_hashtable *hash, unsigned int bucket, int *idx_skip) argument
2408 struct batadv_hashtable *hash; local
[all...]
H A Ddistributed-arp-table.c44 #include "hash.h"
161 spinlock_t *list_lock; /* protects write access to the hash lists */
167 if (!bat_priv->dat.hash)
170 for (i = 0; i < bat_priv->dat.hash->size; i++) {
171 head = &bat_priv->dat.hash->table[i];
172 list_lock = &bat_priv->dat.hash->list_locks[i];
192 * DAT hash table
210 * batadv_compare_dat() - comparing function used in the local DAT hash table
280 * batadv_hash_dat() - compute the hash value for an IP address
281 * @data: data to hash
288 u32 hash = 0; local
331 struct batadv_hashtable *hash = bat_priv->dat.hash; local
567 struct batadv_hashtable *hash = bat_priv->orig_hash; local
899 batadv_dat_cache_dump_bucket(struct sk_buff *msg, u32 portid, struct netlink_callback *cb, struct batadv_hashtable *hash, unsigned int bucket, int *idx_skip) argument
942 struct batadv_hashtable *hash; local
[all...]
/linux-master/drivers/net/wireguard/
H A Dnoise.c82 memset(&handshake->hash, 0, NOISE_HASH_LEN);
432 static void mix_hash(u8 hash[NOISE_HASH_LEN], const u8 *src, size_t src_len) argument
437 blake2s_update(&blake, hash, NOISE_HASH_LEN);
439 blake2s_final(&blake, hash);
442 static void mix_psk(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], argument
450 mix_hash(hash, temp_hash, NOISE_HASH_LEN);
455 u8 hash[NOISE_HASH_LEN],
458 memcpy(hash, handshake_init_hash, NOISE_HASH_LEN);
460 mix_hash(hash, remote_static, NOISE_PUBLIC_KEY_LEN);
465 u8 hash[NOISE_HASH_LE
454 handshake_init(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], const u8 remote_static[NOISE_PUBLIC_KEY_LEN]) argument
463 message_encrypt(u8 *dst_ciphertext, const u8 *src_plaintext, size_t src_len, u8 key[NOISE_SYMMETRIC_KEY_LEN], u8 hash[NOISE_HASH_LEN]) argument
473 message_decrypt(u8 *dst_plaintext, const u8 *src_ciphertext, size_t src_len, u8 key[NOISE_SYMMETRIC_KEY_LEN], u8 hash[NOISE_HASH_LEN]) argument
485 message_ephemeral(u8 ephemeral_dst[NOISE_PUBLIC_KEY_LEN], const u8 ephemeral_src[NOISE_PUBLIC_KEY_LEN], u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN]) argument
592 u8 hash[NOISE_HASH_LEN]; local
735 u8 hash[NOISE_HASH_LEN]; local
[all...]
/linux-master/drivers/net/team/
H A Dteam_mode_loadbalance.c35 #define LB_TX_HASHTABLE_SIZE 256 /* hash is a char */
90 #define LB_HTPM_PORT_BY_HASH(lp_priv, hash) \
91 (lb_priv)->ex->tx_hash_to_port_mapping[hash].port
93 #define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash) \
94 (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info
117 /* Basic tx selection based solely by hash */
119 unsigned char hash)
121 int port_index = team_num_to_port_index(team, hash);
128 unsigned char hash)
133 port = rcu_dereference_bh(LB_HTPM_PORT_BY_HASH(lb_priv, hash));
118 lb_hash_select_tx_port(struct team *team, unsigned char hash) argument
127 lb_htpm_select_tx_port(struct team *team, unsigned char hash) argument
200 lb_update_tx_stats(unsigned int tx_bytes, struct lb_priv *lb_priv, struct lb_port_priv *lb_port_priv, unsigned char hash) argument
222 unsigned char hash; local
361 unsigned char hash = info->array_index; local
371 unsigned char hash = ctx->info->array_index; local
382 unsigned char hash = ctx->info->array_index; local
399 unsigned char hash = info->array_index; local
407 unsigned char hash = ctx->info->array_index; local
[all...]
/linux-master/drivers/crypto/starfive/
H A Djh7110-hash.c10 #include <crypto/internal/hash.h>
74 rctx->csr.hash.hmac = 1;
75 rctx->csr.hash.key_flag = 1;
77 writel(rctx->csr.hash.v, cryp->base + STARFIVE_HASH_SHACSR);
210 rctx->csr.hash.v = 0;
211 rctx->csr.hash.mode = ctx->hash_mode;
218 rctx->csr.hash.start = 1;
219 rctx->csr.hash.firstb = 1;
220 writel(rctx->csr.hash.v, cryp->base + STARFIVE_HASH_SHACSR);
371 static int starfive_hash_init_tfm(struct crypto_ahash *hash, argument
400 starfive_hash_exit_tfm(struct crypto_ahash *hash) argument
453 starfive_hash_setkey(struct crypto_ahash *hash, const u8 *key, unsigned int keylen) argument
494 starfive_sha224_init_tfm(struct crypto_ahash *hash) argument
500 starfive_sha256_init_tfm(struct crypto_ahash *hash) argument
506 starfive_sha384_init_tfm(struct crypto_ahash *hash) argument
512 starfive_sha512_init_tfm(struct crypto_ahash *hash) argument
518 starfive_sm3_init_tfm(struct crypto_ahash *hash) argument
524 starfive_hmac_sha224_init_tfm(struct crypto_ahash *hash) argument
530 starfive_hmac_sha256_init_tfm(struct crypto_ahash *hash) argument
536 starfive_hmac_sha384_init_tfm(struct crypto_ahash *hash) argument
542 starfive_hmac_sha512_init_tfm(struct crypto_ahash *hash) argument
548 starfive_hmac_sm3_init_tfm(struct crypto_ahash *hash) argument
[all...]
/linux-master/security/tomoyo/
H A Dmemory.c8 #include <linux/hash.h>
155 unsigned int hash; local
162 hash = full_name_hash(NULL, (const unsigned char *) name, len - 1);
163 head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)];
167 if (hash != ptr->entry.hash || strcmp(name, ptr->entry.name) ||
/linux-master/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_trace.h78 u32 hash,
81 TP_ARGS(rxq, num_rqes, pkt_len, hash, cls_vec),
88 __field(u32, hash)
98 __entry->hash = hash;
103 TP_printk("%s: Rxq %u, CQ head %u, RQEs %u, len %u, hash %u, CV %#x",
105 __entry->num_rqes, __entry->len, __entry->hash,
/linux-master/drivers/base/power/
H A Dtrace.c64 * a case where we have a hash collision, and we end up not
140 * This is just the sdbm hash function with a user-supplied
160 * section instead. Generating a hash of the data gives us a
163 * likely not give totally bogus reports - if the hash matches,
193 unsigned int hash = hash_string(lineno, file, FILEHASH); local
194 if (hash != value)
196 pr_info(" hash matches %s:%u\n", file, lineno);
211 unsigned int hash = hash_string(DEVSEED, dev_name(dev), DEVHASH); local
212 if (hash == value) {
213 dev_info(dev, "hash matche
238 unsigned int hash = hash_string(DEVSEED, dev_name(dev), local
[all...]
/linux-master/drivers/md/dm-vdo/
H A Dint-map.c16 * probing, all the entries that hash to a given bucket are stored within a fixed neighborhood
36 * entries of the hash bucket at the start of the neighborhood, a pair of small offset fields each
66 * struct bucket - hash bucket
101 /** @buckets: The array of hash buckets. */
106 * mix() - The Google CityHash 16-byte hash mixing function.
110 * Return: A hash of the two inputs.
115 u64 hash = (input1 ^ input2); local
117 hash *= CITY_MULTIPLIER;
118 hash ^= (hash >> 4
299 u64 hash = hash_key(key) & 0xFFFFFFFF; local
[all...]
/linux-master/include/net/
H A Dtls_toe.h51 * int (*hash)(struct tls_toe_device *device, struct sock *sk);
66 int (*hash)(struct tls_toe_device *device, struct sock *sk); member in struct:tls_toe_device
/linux-master/include/linux/
H A Ddigsig.h39 uint8_t hash; member in struct:signature_hdr
/linux-master/tools/testing/selftests/vDSO/
H A Dparse_vdso.c112 ELF(Word) *hash = 0;
130 hash = (ELF(Word) *)
146 if (!vdso_info.symstrings || !vdso_info.symtab || !hash)
152 /* Parse the hash table header. */
153 vdso_info.nbucket = hash[0];
154 vdso_info.nchain = hash[1];
155 vdso_info.bucket = &hash[2];
156 vdso_info.chain = &hash[vdso_info.nbucket + 2];
163 const char *name, ELF(Word) hash)
167 * ver matches name (which hashes to hash)
[all...]
/linux-master/arch/x86/kernel/cpu/sgx/
H A Ddriver.h5 #include <crypto/hash.h>
/linux-master/include/crypto/
H A Dsha1.h34 unsigned int len, u8 *hash);
39 * the correct way to hash something with SHA-1 (use crypto_shash instead).
/linux-master/kernel/
H A Dmodule_signature.c34 ms->hash != 0 ||
/linux-master/arch/parisc/kernel/vdso32/
H A Dvdso32.lds.S16 .hash : { *(.hash) } :text
17 .gnu.hash : { *(.gnu.hash) }
/linux-master/arch/parisc/kernel/vdso64/
H A Dvdso64.lds.S15 .hash : { *(.hash) } :text
16 .gnu.hash : { *(.gnu.hash) }
/linux-master/arch/powerpc/kernel/vdso/
H A Dvdso32.lds.S22 .hash : { *(.hash) } :text
23 .gnu.hash : { *(.gnu.hash) }

Completed in 257 milliseconds

1234567891011>>