Home
last modified time | relevance | path

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

/Linux-v5.10/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.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmod_hdr.c55 u32 hash_key) in mod_hdr_get() argument
59 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get()
79 u32 hash_key; in mlx5e_mod_hdr_attach() local
87 hash_key = hash_mod_hdr_info(&key); in mlx5e_mod_hdr_attach()
90 mh = mod_hdr_get(tbl, &key, hash_key); in mlx5e_mod_hdr_attach()
114 hash_add(tbl->hlist, &mh->mod_hdr_hlist, hash_key); in mlx5e_mod_hdr_attach()
Dmapping.c39 u32 hash_key; in mapping_add() local
43 hash_key = jhash(data, ctx->data_size, 0); in mapping_add()
44 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add()
54 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()
/Linux-v5.10/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.10/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()
213 hash_add(fscrypt_direct_keys, &to_insert->dk_node, hash_key); in find_or_insert_direct_key()
/Linux-v5.10/drivers/net/ethernet/amazon/ena/
Dena_com.c1056 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local
1057 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1059 netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key()
1063 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; in ena_com_hash_key_fill_default_key()
1074 rss->hash_key = in ena_com_hash_key_allocate()
1075 dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1078 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1088 if (rss->hash_key) in ena_com_hash_key_destroy()
1089 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_destroy()
1090 rss->hash_key, rss->hash_key_dma_addr); in ena_com_hash_key_destroy()
[all …]
Dena_com.h276 struct ena_admin_feature_rss_flow_hash_control *hash_key; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads_termtbl.c114 u32 hash_key; in mlx5_eswitch_termtbl_get_create() local
118 hash_key = mlx5_eswitch_termtbl_hash(flow_act, dest); in mlx5_eswitch_termtbl_get_create()
120 termtbl_hlist, hash_key) { in mlx5_eswitch_termtbl_get_create()
147 hash_add(esw->offloads.termtbl_tbl, &tt->termtbl_hlist, hash_key); in mlx5_eswitch_termtbl_get_create()
Den_tc.c737 u32 hash_key = hash_hairpin_info(peer_vhca_id, prio); in mlx5e_hairpin_get() local
740 hairpin_hlist, hash_key) { in mlx5e_hairpin_get()
3633 uintptr_t hash_key) in mlx5e_encap_get() argument
3640 encap_hlist, hash_key) { in mlx5e_encap_get()
3653 uintptr_t hash_key) in mlx5e_decap_get() argument
3660 hlist, hash_key) { in mlx5e_decap_get()
3710 uintptr_t hash_key; in mlx5e_attach_encap() local
3723 hash_key = hash_encap_info(&key); in mlx5e_attach_encap()
3726 e = mlx5e_encap_get(priv, &key, hash_key); in mlx5e_attach_encap()
3768 hash_add_rcu(esw->offloads.encap_tbl, &e->encap_hlist, hash_key); in mlx5e_attach_encap()
[all …]
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.h193 u8 hash_key[HCLGEVF_RSS_HASH_KEY_NUM]; member
Dhclgevf_main.c607 memcpy(req->hash_key, in hclgevf_set_rss_algo_key()
/Linux-v5.10/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c537 u8 hash_key[ENETC_RSSHASH_KEY_SIZE]; in enetc_configure_port() local
547 get_random_bytes(hash_key, ENETC_RSSHASH_KEY_SIZE); in enetc_configure_port()
548 enetc_set_rss_key(hw, hash_key); in enetc_configure_port()
/Linux-v5.10/drivers/crypto/
Dn2_core.c297 unsigned char hash_key[N2_HASH_KEY_MAX]; member
477 ctx->hash_key); in n2_hmac_async_setkey()
482 memcpy(ctx->hash_key, key, keylen); in n2_hmac_async_setkey()
654 __pa(&ctx->hash_key), in n2_hmac_async_digest()
Dpicoxcell_crypto.c238 const u8 *iv, size_t ivlen, const u8 *hash_key, in spacc_load_ctx() argument
254 if (hash_key) { in spacc_load_ctx()
255 memcpy_toio32(hash_page_addr, hash_key, hash_len / 4); in spacc_load_ctx()
/Linux-v5.10/net/openvswitch/
Dflow_table.c650 const u32 *hash_key = (const u32 *)((const u8 *)key + range->start); in flow_hash() local
655 return jhash2(hash_key, hash_u32s, 0); in flow_hash()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.h540 u8 hash_key[HCLGE_RSS_HASH_KEY_NUM]; member
Dhclge_main.c4222 memcpy(req->hash_key, in hclge_set_rss_algo_key()