/kernel/linux/linux-5.10/net/rxrpc/ |
H A D | peer_object.c | 33 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() 76 rxrpc_peer_cmp_key(const struct rxrpc_peer *peer, struct rxrpc_local *local, const struct sockaddr_rxrpc *srx, unsigned long hash_key) rxrpc_peer_cmp_key() argument 114 __rxrpc_lookup_peer_rcu( struct rxrpc_local *local, const struct sockaddr_rxrpc *srx, unsigned long hash_key) __rxrpc_lookup_peer_rcu() argument 138 unsigned long hash_key = rxrpc_peer_hash_key(local, srx); rxrpc_lookup_peer_rcu() local 246 rxrpc_init_peer(struct rxrpc_sock *rx, struct rxrpc_peer *peer, unsigned long hash_key) rxrpc_init_peer() argument 282 rxrpc_create_peer(struct rxrpc_sock *rx, struct rxrpc_local *local, struct sockaddr_rxrpc *srx, unsigned long hash_key, gfp_t gfp) rxrpc_create_peer() argument 317 unsigned long hash_key; rxrpc_new_incoming_peer() local 337 unsigned long hash_key = rxrpc_peer_hash_key(local, srx); rxrpc_lookup_peer() local [all...] |
/kernel/linux/linux-6.6/net/rxrpc/ |
H A D | peer_object.c | 33 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() 76 rxrpc_peer_cmp_key(const struct rxrpc_peer *peer, struct rxrpc_local *local, const struct sockaddr_rxrpc *srx, unsigned long hash_key) rxrpc_peer_cmp_key() argument 114 __rxrpc_lookup_peer_rcu( struct rxrpc_local *local, const struct sockaddr_rxrpc *srx, unsigned long hash_key) __rxrpc_lookup_peer_rcu() argument 138 unsigned long hash_key = rxrpc_peer_hash_key(local, srx); rxrpc_lookup_peer_rcu() local 239 rxrpc_init_peer(struct rxrpc_local *local, struct rxrpc_peer *peer, unsigned long hash_key) rxrpc_init_peer() argument 275 rxrpc_create_peer(struct rxrpc_local *local, struct sockaddr_rxrpc *srx, unsigned long hash_key, gfp_t gfp) rxrpc_create_peer() argument 309 unsigned long hash_key; rxrpc_new_incoming_peer() local 328 unsigned long hash_key = rxrpc_peer_hash_key(local, srx); rxrpc_lookup_peer() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/translate/ |
H A D | translate_cache.c | 82 unsigned hash_key; in create_key() local 86 hash_key = cso_construct_key(key, size); in create_key() 87 return hash_key; in create_key() 93 unsigned hash_key = create_key(key); in translate_cache_find() local 96 hash_key, in translate_cache_find() 102 cso_hash_insert(&cache->hash, hash_key, translate); in translate_cache_find()
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
H A D | cso_cache.c | 107 unsigned hash_key, enum cso_cache_type type, in cso_insert_state() 113 return cso_hash_insert(hash, hash_key, state); in cso_insert_state() 118 unsigned hash_key, enum cso_cache_type type) in cso_find_state() 122 return cso_hash_find(hash, hash_key); in cso_find_state() 127 unsigned hash_key, in cso_hash_find_data_from_template() 131 struct cso_hash_iter iter = cso_hash_find(hash, hash_key); in cso_hash_find_data_from_template() 146 unsigned hash_key, enum cso_cache_type type, in cso_find_state_template() 149 struct cso_hash_iter iter = cso_find_state(sc, hash_key, type); in cso_find_state_template() 106 cso_insert_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *state) cso_insert_state() argument 117 cso_find_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type) cso_find_state() argument 126 cso_hash_find_data_from_template( struct cso_hash *hash, unsigned hash_key, void *templ, int size ) cso_hash_find_data_from_template() argument 145 cso_find_state_template(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *templ, unsigned size) cso_find_state_template() argument
|
H A D | cso_cache.h | 136 unsigned hash_key; member 160 unsigned hash_key, enum cso_cache_type type, 163 unsigned hash_key, enum cso_cache_type type); 165 unsigned hash_key, enum cso_cache_type type,
|
H A D | cso_context.c | 195 if (sampler && cso_hash_take(hash, sampler->hash_key)) in sanitize_hash() 222 cso_hash_insert(hash, sampler->hash_key, sampler); in sanitize_hash() 441 unsigned key_size, hash_key; in cso_set_blend() local 448 hash_key = cso_construct_key((void*)templ, key_size); in cso_set_blend() 449 iter = cso_find_state_template(&ctx->cache, hash_key, CSO_BLEND, in cso_set_blend() 461 iter = cso_insert_state(&ctx->cache, hash_key, CSO_BLEND, cso); in cso_set_blend() 504 unsigned hash_key = cso_construct_key((void*)templ, key_size); in cso_set_depth_stencil_alpha() local 506 hash_key, in cso_set_depth_stencil_alpha() 521 iter = cso_insert_state(&ctx->cache, hash_key, in cso_set_depth_stencil_alpha() 566 unsigned hash_key in cso_set_rasterizer() local 1032 unsigned key_size, hash_key; cso_set_vertex_elements_direct() local 1220 unsigned hash_key = cso_construct_key((void*)templ, key_size); set_sampler() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mod_hdr.c | 55 u32 hash_key) in mod_hdr_get() 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() 53 mod_hdr_get(struct mod_hdr_tbl *tbl, struct mod_hdr_key *key, u32 hash_key) mod_hdr_get() argument
|
H A D | mapping.c | 39 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mod_hdr.c | 56 u32 hash_key) in mod_hdr_get() 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() 54 mod_hdr_get(struct mod_hdr_tbl *tbl, struct mod_hdr_key *key, u32 hash_key) mod_hdr_get() argument
|
H A D | tc_tun_encap.c | 648 uintptr_t hash_key) in mlx5e_encap_get() 655 encap_hlist, hash_key) { in mlx5e_encap_get() 668 uintptr_t hash_key) in mlx5e_decap_get() 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 in mlx5e_attach_decap() 647 mlx5e_encap_get(struct mlx5e_priv *priv, struct mlx5e_encap_key *key, uintptr_t hash_key) mlx5e_encap_get() argument 667 mlx5e_decap_get(struct mlx5e_priv *priv, struct mlx5e_decap_key *key, uintptr_t hash_key) mlx5e_decap_get() argument 1158 mlx5e_route_get(struct mlx5e_tc_tun_encap *encap, struct mlx5e_route_key *key, u32 hash_key) mlx5e_route_get() argument 1184 u32 hash_key; mlx5e_route_get_create() local 1224 u32 hash_key = hash_route_info(key); mlx5e_route_lookup_for_update() local [all...] |
H A 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | metadata.c | 17 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 in nfp_search_mask_table() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/ |
H A 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 in nfp_search_mask_table() [all...] |
/kernel/linux/linux-5.10/fs/crypto/ |
H A D | keysetup_v1.c | 182 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()
|
/kernel/linux/linux-6.6/fs/crypto/ |
H A D | keysetup_v1.c | 183 unsigned long hash_key; in find_or_insert_direct_key() local 192 BUILD_BUG_ON(sizeof(hash_key) > FSCRYPT_KEY_DESCRIPTOR_SIZE); in find_or_insert_direct_key() 193 memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key() 194 sizeof(hash_key)); in find_or_insert_direct_key() 197 hash_for_each_possible(fscrypt_direct_keys, dk, dk_node, hash_key) { in find_or_insert_direct_key() 214 hash_add(fscrypt_direct_keys, &to_insert->dk_node, hash_key); in find_or_insert_direct_key()
|
/third_party/mesa3d/src/mesa/program/ |
H A D | prog_cache.c | 60 hash_key(const void *key, GLuint key_size) in hash_key() function 185 const GLuint hash = hash_key(key, keysize); in _mesa_search_program_cache() 209 const GLuint hash = hash_key(key, keysize); in _mesa_program_cache_insert() 238 const GLuint hash = hash_key(key, keysize); in _mesa_shader_cache_insert()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/ |
H A D | ena_com.c | 1059 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local 1060 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key() 1062 netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key() 1066 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; in ena_com_hash_key_fill_default_key() 1077 rss->hash_key = in ena_com_hash_key_allocate() 1078 dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate() 1081 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate() 1091 if (rss->hash_key) in ena_com_hash_key_destroy() 1092 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_destroy() 2308 struct ena_admin_feature_rss_flow_hash_control *hash_key; ena_com_fill_hash_function() local 2393 struct ena_admin_feature_rss_flow_hash_control *hash_key = ena_com_get_hash_key() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/amazon/ena/ |
H A D | ena_com.c | 1093 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local 1094 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key() 1096 netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key() 1100 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; in ena_com_hash_key_fill_default_key() 1111 rss->hash_key = in ena_com_hash_key_allocate() 1112 dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate() 1115 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate() 1125 if (rss->hash_key) in ena_com_hash_key_destroy() 1126 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_destroy() 2381 struct ena_admin_feature_rss_flow_hash_control *hash_key; ena_com_fill_hash_function() local 2458 struct ena_admin_feature_rss_flow_hash_control *hash_key = ena_com_get_hash_key() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads_termtbl.c | 117 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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()
|
/third_party/eudev/src/shared/ |
H A D | hashmap.h | 70 typedef unsigned long (*hash_func_t)(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]); 78 unsigned long string_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) _pure_; 85 unsigned long trivial_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) _pure_; 92 unsigned long uint64_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) _pure_; 99 unsigned long devt_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) _pure_;
|
H A D | hashmap.c | 175 uint8_t hash_key[HASH_KEY_SIZE]; /* hash key; changes during resize */ member 276 unsigned long string_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) { in string_hash_func() argument 278 siphash24((uint8_t*) &u, p, strlen(p), hash_key); in string_hash_func() 291 unsigned long trivial_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) { in trivial_hash_func() argument 293 siphash24((uint8_t*) &u, &p, sizeof(p), hash_key); in trivial_hash_func() 306 unsigned long uint64_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) { in uint64_hash_func() argument 308 siphash24((uint8_t*) &u, p, sizeof(uint64_t), hash_key); in uint64_hash_func() 325 unsigned long devt_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) { in devt_hash_func() argument 327 siphash24((uint8_t*) &u, p, sizeof(dev_t), hash_key); in devt_hash_func() 373 static uint8_t *hash_key(HashmapBas function 383 get_hash_key(uint8_t hash_key[HASH_KEY_SIZE], bool reuse_is_ok) get_hash_key() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/ |
H A 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[ in rvu_exact_calculate_hash() [all...] |