Home
last modified time | relevance | path

Searched refs:hash_key (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.4/net/rxrpc/
Dpeer_object.c33 unsigned long hash_key; in rxrpc_peer_hash_key() local
37 hash_key = (unsigned long)local / __alignof__(*local); in rxrpc_peer_hash_key()
38 hash_key += srx->transport_type; in rxrpc_peer_hash_key()
39 hash_key += srx->transport_len; in rxrpc_peer_hash_key()
40 hash_key += srx->transport.family; in rxrpc_peer_hash_key()
44 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
50 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
62 hash_key += *p; in rxrpc_peer_hash_key()
64 _leave(" 0x%lx", hash_key); in rxrpc_peer_hash_key()
65 return hash_key; in rxrpc_peer_hash_key()
[all …]
Dar-internal.h293 unsigned long hash_key; member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c17 u32 hash_key; member
198 unsigned long hash_key; in nfp_add_mask_table() local
212 hash_key = jhash(mask_data, mask_len, priv->mask_id_seed); in nfp_add_mask_table()
213 mask_entry->hash_key = hash_key; in nfp_add_mask_table()
215 hash_add(priv->mask_table, &mask_entry->link, hash_key); in nfp_add_mask_table()
225 unsigned long hash_key; in nfp_search_mask_table() local
227 hash_key = jhash(mask_data, mask_len, priv->mask_id_seed); in nfp_search_mask_table()
229 hash_for_each_possible(priv->mask_table, mask_entry, link, hash_key) in nfp_search_mask_table()
230 if (mask_entry->hash_key == hash_key) in nfp_search_mask_table()
/Linux-v5.4/fs/crypto/
Dkeysetup_v1.c182 unsigned long hash_key; in find_or_insert_direct_key() local
191 BUILD_BUG_ON(sizeof(hash_key) > FSCRYPT_KEY_DESCRIPTOR_SIZE); in find_or_insert_direct_key()
192 memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key()
193 sizeof(hash_key)); in find_or_insert_direct_key()
196 hash_for_each_possible(fscrypt_direct_keys, dk, dk_node, hash_key) { in find_or_insert_direct_key()
211 hash_add(fscrypt_direct_keys, &to_insert->dk_node, hash_key); in find_or_insert_direct_key()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads_termtbl.c99 u32 hash_key; in mlx5_eswitch_termtbl_get_create() local
104 hash_key = mlx5_eswitch_termtbl_hash(flow_act, dest); in mlx5_eswitch_termtbl_get_create()
106 termtbl_hlist, hash_key) { in mlx5_eswitch_termtbl_get_create()
132 hash_add(esw->offloads.termtbl_tbl, &tt->termtbl_hlist, hash_key); in mlx5_eswitch_termtbl_get_create()
Den_tc.c309 mlx5e_mod_hdr_get(struct mod_hdr_tbl *tbl, struct mod_hdr_key *key, u32 hash_key) in mlx5e_mod_hdr_get() argument
313 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mlx5e_mod_hdr_get()
355 u32 hash_key; in mlx5e_attach_mod_hdr() local
363 hash_key = hash_mod_hdr_info(&key); in mlx5e_attach_mod_hdr()
369 mh = mlx5e_mod_hdr_get(tbl, &key, hash_key); in mlx5e_attach_mod_hdr()
395 hash_add(tbl->hlist, &mh->mod_hdr_hlist, hash_key); in mlx5e_attach_mod_hdr()
700 u32 hash_key = hash_hairpin_info(peer_vhca_id, prio); in mlx5e_hairpin_get() local
703 hairpin_hlist, hash_key) { in mlx5e_hairpin_get()
2960 uintptr_t hash_key) in mlx5e_encap_get() argument
2967 encap_hlist, hash_key) { in mlx5e_encap_get()
[all …]
/Linux-v5.4/drivers/net/ethernet/amazon/ena/
Dena_com.c1048 rss->hash_key = in ena_com_hash_key_allocate()
1049 dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1052 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1062 if (rss->hash_key) in ena_com_hash_key_destroy()
1063 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_destroy()
1064 rss->hash_key, rss->hash_key_dma_addr); in ena_com_hash_key_destroy()
1065 rss->hash_key = NULL; in ena_com_hash_key_destroy()
2256 cmd.control_buffer.length = sizeof(*rss->hash_key); in ena_com_set_hash_function()
2278 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_fill_hash_function() local
2279 rss->hash_key; in ena_com_fill_hash_function()
[all …]
Dena_com.h296 struct ena_admin_feature_rss_flow_hash_control *hash_key; member
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.h174 u8 hash_key[HCLGEVF_RSS_HASH_KEY_NUM]; member
Dhclgevf_main.c572 memcpy(req->hash_key, in hclgevf_set_rss_algo_key()
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c547 u8 hash_key[ENETC_RSSHASH_KEY_SIZE]; in enetc_configure_port() local
557 get_random_bytes(hash_key, ENETC_RSSHASH_KEY_SIZE); in enetc_configure_port()
558 enetc_set_rss_key(hw, hash_key); in enetc_configure_port()
/Linux-v5.4/net/openvswitch/
Dflow_table.c375 const u32 *hash_key = (const u32 *)((const u8 *)key + key_start); in flow_hash() local
381 return jhash2(hash_key, hash_u32s, 0); in flow_hash()
/Linux-v5.4/drivers/crypto/
Dn2_core.c296 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()
Dpicoxcell_crypto.c237 const u8 *iv, size_t ivlen, const u8 *hash_key, in spacc_load_ctx() argument
253 if (hash_key) { in spacc_load_ctx()
254 memcpy_toio32(hash_page_addr, hash_key, hash_len / 4); in spacc_load_ctx()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.h509 u8 hash_key[HCLGE_RSS_HASH_KEY_NUM]; member
Dhclge_main.c4028 memcpy(req->hash_key, in hclge_set_rss_algo_key()