Home
last modified time | relevance | path

Searched refs:htbl (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/infiniband/ulp/ipoib/
Dipoib_main.c1254 static u32 ipoib_addr_hash(struct ipoib_neigh_hash *htbl, u8 *daddr) in ipoib_addr_hash() argument
1267 return hv & htbl->mask; in ipoib_addr_hash()
1274 struct ipoib_neigh_hash *htbl; in ipoib_neigh_get() local
1280 htbl = rcu_dereference_bh(ntbl->htbl); in ipoib_neigh_get()
1282 if (!htbl) in ipoib_neigh_get()
1285 hash_val = ipoib_addr_hash(htbl, daddr); in ipoib_neigh_get()
1286 for (neigh = rcu_dereference_bh(htbl->buckets[hash_val]); in ipoib_neigh_get()
1311 struct ipoib_neigh_hash *htbl; in __ipoib_reap_neigh() local
1320 htbl = rcu_dereference_protected(ntbl->htbl, in __ipoib_reap_neigh()
1323 if (!htbl) in __ipoib_reap_neigh()
[all …]
Dipoib.h305 struct ipoib_neigh_hash __rcu *htbl; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c26 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl) in mlx5dr_ste_calc_hash_index() argument
28 u32 num_entries = mlx5dr_icm_pool_get_chunk_num_of_entries(htbl->chunk); in mlx5dr_ste_calc_hash_index()
36 if (num_entries == 1 || htbl->byte_mask == 0) in mlx5dr_ste_calc_hash_index()
42 if (htbl->byte_mask & bit) in mlx5dr_ste_calc_hash_index()
115 u64 base_icm_addr = mlx5dr_icm_pool_get_chunk_icm_addr(ste->htbl->chunk); in mlx5dr_ste_get_icm_addr()
116 u32 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_icm_addr()
123 u32 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_mr_addr()
125 return mlx5dr_icm_pool_get_chunk_mr_addr(ste->htbl->chunk) + DR_STE_SIZE * index; in mlx5dr_ste_get_mr_addr()
130 u64 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_hw_ste()
132 return ste->htbl->chunk->hw_ste_arr + DR_STE_SIZE_REDUCED * index; in mlx5dr_ste_get_hw_ste()
[all …]
Ddr_rule.c80 ste->htbl->pointing_ste = orig_ste->htbl->pointing_ste; in dr_rule_create_collision_entry()
83 ste->htbl->chunk->miss_list = mlx5dr_ste_get_miss_list(orig_ste); in dr_rule_create_collision_entry()
188 new_ste->htbl->pointing_ste = col_ste->htbl->pointing_ste; in dr_rule_rehash_handle_collision()
191 new_ste->htbl->chunk->miss_list = mlx5dr_ste_get_miss_list(col_ste); in dr_rule_rehash_handle_collision()
320 mlx5dr_htbl_put(cur_ste->htbl); in dr_rule_rehash_copy_miss_list()
441 struct mlx5dr_ste_htbl *prev_htbl = cur_htbl->pointing_ste->htbl; in dr_rule_rehash_htbl()
536 ste->htbl->ctrl.num_of_collisions++; in dr_rule_handle_collision()
537 ste->htbl->ctrl.num_of_valid_entries++; in dr_rule_handle_collision()
608 return first_ste->htbl->pointing_ste; in dr_rule_get_pointed_ste()
659 static bool dr_rule_need_enlarge_hash(struct mlx5dr_ste_htbl *htbl, in dr_rule_need_enlarge_hash() argument
[all …]
Ddr_types.h161 struct mlx5dr_ste_htbl *htbl; member
222 int mlx5dr_ste_htbl_free(struct mlx5dr_ste_htbl *htbl);
224 static inline void mlx5dr_htbl_put(struct mlx5dr_ste_htbl *htbl) in mlx5dr_htbl_put() argument
226 htbl->refcount--; in mlx5dr_htbl_put()
227 if (!htbl->refcount) in mlx5dr_htbl_put()
228 mlx5dr_ste_htbl_free(htbl); in mlx5dr_htbl_put()
231 static inline void mlx5dr_htbl_get(struct mlx5dr_ste_htbl *htbl) in mlx5dr_htbl_get() argument
233 htbl->refcount++; in mlx5dr_htbl_get()
237 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl);
1190 mlx5dr_ste_htbl_increase_threshold(struct mlx5dr_ste_htbl *htbl) in mlx5dr_ste_htbl_increase_threshold() argument
[all …]
Ddr_send.c404 struct mlx5dr_ste_htbl *htbl, in dr_get_tbl_copy_details() argument
410 u32 chunk_byte_size = mlx5dr_icm_pool_get_chunk_byte_size(htbl->chunk); in dr_get_tbl_copy_details()
420 *num_stes = mlx5dr_icm_pool_get_chunk_num_of_entries(htbl->chunk); in dr_get_tbl_copy_details()
456 send_info.rkey = mlx5dr_icm_pool_get_chunk_rkey(ste->htbl->chunk); in mlx5dr_send_postsend_ste()
462 struct mlx5dr_ste_htbl *htbl, in mlx5dr_send_postsend_htbl() argument
465 u32 byte_size = mlx5dr_icm_pool_get_chunk_byte_size(htbl->chunk); in mlx5dr_send_postsend_htbl()
473 ret = dr_get_tbl_copy_details(dmn, htbl, &data, &byte_size, in mlx5dr_send_postsend_htbl()
489 struct mlx5dr_ste *ste = &htbl->chunk->ste_arr[ste_index + j]; in mlx5dr_send_postsend_htbl()
498 htbl->chunk->hw_ste_arr + in mlx5dr_send_postsend_htbl()
515 mlx5dr_ste_get_mr_addr(htbl->chunk->ste_arr + ste_index); in mlx5dr_send_postsend_htbl()
[all …]
/linux-6.1.9/drivers/media/platform/renesas/
Drcar_jpu.c553 static void put_htbl(u8 *p, const u8 *htbl, unsigned int len) in put_htbl() argument
559 p[i + j] = htbl[i + 3 - j]; in put_htbl()
/linux-6.1.9/drivers/media/platform/samsung/s5p-jpeg/
Djpeg-core.c642 const unsigned char *htbl, in s5p_jpeg_set_htbl() argument
648 writel((unsigned int)htbl[i], regs + tab + (i * 0x04)); in s5p_jpeg_set_htbl()