/linux-6.12.1/net/rxrpc/ |
D | peer_object.c | 35 unsigned long hash_key; in rxrpc_peer_hash_key() local 39 hash_key = (unsigned long)local / __alignof__(*local); in rxrpc_peer_hash_key() 40 hash_key += srx->transport_type; in rxrpc_peer_hash_key() 41 hash_key += srx->transport_len; in rxrpc_peer_hash_key() 42 hash_key += srx->transport.family; in rxrpc_peer_hash_key() 46 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key() 52 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key() 64 hash_key += *p; in rxrpc_peer_hash_key() 66 _leave(" 0x%lx", hash_key); in rxrpc_peer_hash_key() 67 return hash_key; in rxrpc_peer_hash_key() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mod_hdr.c | 56 u32 hash_key) in mod_hdr_get() argument 60 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get() 80 u32 hash_key; in mlx5e_mod_hdr_attach() local 88 hash_key = hash_mod_hdr_info(&key); in mlx5e_mod_hdr_attach() 91 mh = mod_hdr_get(tbl, &key, hash_key); in mlx5e_mod_hdr_attach() 115 hash_add(tbl->hlist, &mh->mod_hdr_hlist, hash_key); in mlx5e_mod_hdr_attach()
|
D | mapping.c | 47 u32 hash_key; in mapping_add() local 51 hash_key = jhash(data, ctx->data_size, 0); in mapping_add() 52 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add() 62 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()
|
D | tc_tun_encap.c | 648 uintptr_t hash_key) in mlx5e_encap_get() argument 655 encap_hlist, hash_key) { in mlx5e_encap_get() 668 uintptr_t hash_key) in mlx5e_decap_get() argument 675 hlist, hash_key) { in mlx5e_decap_get() 830 uintptr_t hash_key; in mlx5e_attach_encap() local 846 hash_key = hash_encap_info(&key); in mlx5e_attach_encap() 848 e = mlx5e_encap_get(priv, &key, hash_key); in mlx5e_attach_encap() 884 hash_add_rcu(esw->offloads.encap_tbl, &e->encap_hlist, hash_key); in mlx5e_attach_encap() 949 uintptr_t hash_key; in mlx5e_attach_decap() local 959 hash_key = hash_decap_info(&key); in mlx5e_attach_decap() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | timer_mim_reject.c | 54 int hash_key = HASH_KEY; in BPF_PROG() local 63 bpf_map_update_elem(inner_map, &hash_key, &init, 0); in BPF_PROG() 64 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
|
D | timer_mim.c | 71 int hash_key = HASH_KEY; in BPF_PROG() local 77 bpf_map_update_elem(inner_map, &hash_key, &init, 0); in BPF_PROG() 78 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
|
/linux-6.12.1/fs/crypto/ |
D | keysetup_v1.c | 184 unsigned long hash_key; in find_or_insert_direct_key() local 193 BUILD_BUG_ON(sizeof(hash_key) > FSCRYPT_KEY_DESCRIPTOR_SIZE); in find_or_insert_direct_key() 194 memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key() 195 sizeof(hash_key)); in find_or_insert_direct_key() 198 hash_for_each_possible(fscrypt_direct_keys, dk, dk_node, hash_key) { in find_or_insert_direct_key() 215 hash_add(fscrypt_direct_keys, &to_insert->dk_node, hash_key); in find_or_insert_direct_key()
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/flower/ |
D | metadata.c | 18 u32 hash_key; member 211 unsigned long hash_key; in nfp_add_mask_table() local 225 hash_key = jhash(mask_data, mask_len, priv->mask_id_seed); in nfp_add_mask_table() 226 mask_entry->hash_key = hash_key; in nfp_add_mask_table() 228 hash_add(priv->mask_table, &mask_entry->link, hash_key); in nfp_add_mask_table() 238 unsigned long hash_key; in nfp_search_mask_table() local 240 hash_key = jhash(mask_data, mask_len, priv->mask_id_seed); in nfp_search_mask_table() 242 hash_for_each_possible(priv->mask_table, mask_entry, link, hash_key) in nfp_search_mask_table() 243 if (mask_entry->hash_key == hash_key) in nfp_search_mask_table()
|
/linux-6.12.1/drivers/net/ethernet/amazon/ena/ |
D | ena_com.c | 1051 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local 1052 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key() 1054 netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key() 1058 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; in ena_com_hash_key_fill_default_key() 1068 rss->hash_key = dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate() 1071 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate() 1081 if (rss->hash_key) in ena_com_hash_key_destroy() 1082 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), rss->hash_key, in ena_com_hash_key_destroy() 1084 rss->hash_key = NULL; in ena_com_hash_key_destroy() 2354 cmd.control_buffer.length = sizeof(*rss->hash_key); in ena_com_set_hash_function() [all …]
|
D | ena_com.h | 273 struct ena_admin_feature_rss_flow_hash_control *hash_key; member
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch_offloads_termtbl.c | 119 u32 hash_key; in mlx5_eswitch_termtbl_get_create() local 123 hash_key = mlx5_eswitch_termtbl_hash(flow_act, dest); in mlx5_eswitch_termtbl_get_create() 125 termtbl_hlist, hash_key) { in mlx5_eswitch_termtbl_get_create() 151 hash_add(esw->offloads.termtbl_tbl, &tt->termtbl_hlist, hash_key); in mlx5_eswitch_termtbl_get_create()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_hash.c | 84 u64 hash_key[3]; in npc_field_hash_calc() local 88 hash_key[0] = rsp.secret_key[1] << 31; in npc_field_hash_calc() 89 hash_key[0] |= rsp.secret_key[2]; in npc_field_hash_calc() 90 hash_key[1] = rsp.secret_key[1] >> 33; in npc_field_hash_calc() 91 hash_key[1] |= rsp.secret_key[0] << 31; in npc_field_hash_calc() 92 hash_key[2] = rsp.secret_key[0] >> 33; in npc_field_hash_calc() 96 field_hash = rvu_npc_toeplitz_hash(data_padded, hash_key, 128, 159); in npc_field_hash_calc() 430 u64 hash_key[2]; in rvu_exact_calculate_hash() local 438 hash_key[0] = key_in[0] << 31; in rvu_exact_calculate_hash() 439 hash_key[0] |= key_in[1]; in rvu_exact_calculate_hash() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | str_hash.h | 136 u64 (*hash_key)(const struct bch_hash_info *, const void *); member 164 SPOS(inum.inum, desc.hash_key(info, key), snapshot), in bch2_hash_lookup_in_snapshot() 214 SPOS(inum.inum, desc.hash_key(info, key), snapshot), in bch2_hash_hole()
|
D | dirent.c | 96 .hash_key = dirent_hash_key,
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | sample.c | 176 u32 hash_key; in sampler_get() local 180 hash_key = sampler_hash(sample_ratio, default_table_id); in sampler_get() 181 hash_for_each_possible(tc_psample->hashtbl, sampler, hlist, hash_key) in sampler_get() 200 hash_add(tc_psample->hashtbl, &sampler->hlist, hash_key); in sampler_get()
|
/linux-6.12.1/drivers/md/dm-vdo/ |
D | int-map.c | 136 static u64 hash_key(u64 key) in hash_key() function 299 u64 hash = hash_key(key) & 0xFFFFFFFF; in select_bucket()
|
/linux-6.12.1/arch/s390/crypto/ |
D | hmac_s390.c | 98 static int hash_key(const u8 *in, unsigned int inlen, in hash_key() function 164 return hash_key(key, keylen, tfm_ctx->key, ds); in s390_hmac_sha2_setkey()
|
/linux-6.12.1/include/net/ |
D | ip_fib.h | 544 siphash_aligned_key_t hash_key; in fib_multipath_hash_from_keys() local 548 fib_multipath_hash_construct_key(&hash_key, mp_seed); in fib_multipath_hash_from_keys() 550 return flow_hash_from_keys_seed(keys, &hash_key); in fib_multipath_hash_from_keys()
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_rss.h | 59 u8 hash_key[HCLGE_COMM_RSS_HASH_KEY_NUM]; member
|
D | hclge_comm_rss.c | 406 memcpy(req->hash_key, in hclge_comm_set_rss_algo_key()
|
/linux-6.12.1/fs/ntfs3/ |
D | fsntfs.c | 2093 struct SECURITY_KEY hash_key; in ntfs_insert_security() local 2103 hash_key.hash = security_hash(sd, size_sd); in ntfs_insert_security() 2104 hash_key.sec_id = SECURITY_ID_INVALID; in ntfs_insert_security() 2139 err = indx_find(indx_sdh, ni, root_sdh, &hash_key, sizeof(hash_key), in ntfs_insert_security() 2154 d_security->key.hash == hash_key.hash && in ntfs_insert_security() 2168 if (!e || e->key.hash != hash_key.hash) in ntfs_insert_security() 2196 d_security->key.hash = hash_key.hash; in ntfs_insert_security()
|
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 588 u8 hash_key[ENETC_RSSHASH_KEY_SIZE]; in enetc_configure_port() local 596 get_random_bytes(hash_key, ENETC_RSSHASH_KEY_SIZE); in enetc_configure_port() 597 enetc_set_rss_key(hw, hash_key); in enetc_configure_port()
|
/linux-6.12.1/drivers/crypto/ |
D | n2_core.c | 299 unsigned char hash_key[N2_HASH_KEY_MAX]; member 479 ctx->hash_key); in n2_hmac_async_setkey() 484 memcpy(ctx->hash_key, key, keylen); in n2_hmac_async_setkey() 656 __pa(&ctx->hash_key), in n2_hmac_async_digest()
|
/linux-6.12.1/net/openvswitch/ |
D | flow_table.c | 648 const u32 *hash_key = (const u32 *)((const u8 *)key + range->start); in flow_hash() local 653 return jhash2(hash_key, hash_u32s, 0); in flow_hash()
|
/linux-6.12.1/tools/perf/util/ |
D | annotate.c | 216 long hash_key; in __symbol__inc_addr_samples() local 238 hash_key = offset << 16 | evidx; in __symbol__inc_addr_samples() 239 if (!hashmap__find(src->samples, hash_key, &entry)) { in __symbol__inc_addr_samples() 244 if (hashmap__add(src->samples, hash_key, entry) < 0) in __symbol__inc_addr_samples()
|