Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/rxrpc/
H A 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 …]
H A Dar-internal.h285 unsigned long hash_key; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/flower/
H A 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()
/OK3568_Linux_fs/kernel/fs/crypto/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/amazon/ena/
H A 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 …]
H A Dena_com.h276 struct ena_admin_feature_rss_flow_hash_control *hash_key; member
/OK3568_Linux_fs/external/xserver/hw/xquartz/xpr/
H A Dx-hash.c47 x_hash_fun *hash_key; member
89 if (h->hash_key != 0) in hash_table_hash_key()
90 return (*h->hash_key)(k); in hash_table_hash_key()
164 h->hash_key = hash; in X_PFX()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c117 u32 hash_key; in mlx5_eswitch_termtbl_get_create() local
121 hash_key = mlx5_eswitch_termtbl_hash(flow_act, dest); in mlx5_eswitch_termtbl_get_create()
123 termtbl_hlist, hash_key) { in mlx5_eswitch_termtbl_get_create()
150 hash_add(esw->offloads.termtbl_tbl, &tt->termtbl_hlist, hash_key); in mlx5_eswitch_termtbl_get_create()
H A Den_tc.c762 u32 hash_key = hash_hairpin_info(peer_vhca_id, prio); in mlx5e_hairpin_get() local
765 hairpin_hlist, hash_key) { in mlx5e_hairpin_get()
3725 uintptr_t hash_key) in mlx5e_encap_get() argument
3732 encap_hlist, hash_key) { in mlx5e_encap_get()
3745 uintptr_t hash_key) in mlx5e_decap_get() argument
3752 hlist, hash_key) { in mlx5e_decap_get()
3802 uintptr_t hash_key; in mlx5e_attach_encap() local
3815 hash_key = hash_encap_info(&key); in mlx5e_attach_encap()
3818 e = mlx5e_encap_get(priv, &key, hash_key); in mlx5e_attach_encap()
3860 hash_add_rcu(esw->offloads.encap_tbl, &e->encap_hlist, hash_key); in mlx5e_attach_encap()
[all …]
/OK3568_Linux_fs/external/dpdk/pcie/e1000/
H A Digb_rxtx.c1971 uint8_t *hash_key; in igb_hw_rss_hash_set() local
1977 hash_key = rss_conf->rss_key; in igb_hw_rss_hash_set()
1978 if (hash_key != NULL) { in igb_hw_rss_hash_set()
1981 rss_key = hash_key[(i * 4)]; in igb_hw_rss_hash_set()
1982 rss_key |= hash_key[(i * 4) + 1] << 8; in igb_hw_rss_hash_set()
1983 rss_key |= hash_key[(i * 4) + 2] << 16; in igb_hw_rss_hash_set()
1984 rss_key |= hash_key[(i * 4) + 3] << 24; in igb_hw_rss_hash_set()
2047 uint8_t *hash_key; in eth_igb_rss_hash_conf_get() local
2054 hash_key = rss_conf->rss_key; in eth_igb_rss_hash_conf_get()
2055 if (hash_key != NULL) { in eth_igb_rss_hash_conf_get()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_cmd.h194 u8 hash_key[HCLGEVF_RSS_HASH_KEY_NUM]; member
H A Dhclgevf_main.c607 memcpy(req->hash_key, in hclgevf_set_rss_algo_key()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.c544 u8 hash_key[ENETC_RSSHASH_KEY_SIZE]; in enetc_configure_port() local
554 get_random_bytes(hash_key, ENETC_RSSHASH_KEY_SIZE); in enetc_configure_port()
555 enetc_set_rss_key(hw, hash_key); in enetc_configure_port()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/net/openvswitch/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_cmd.h544 u8 hash_key[HCLGE_RSS_HASH_KEY_NUM]; member
H A Dhclge_main.c4225 memcpy(req->hash_key, in hclge_set_rss_algo_key()