Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
Dipoib_main.c1245 static u32 ipoib_addr_hash(struct ipoib_neigh_hash *htbl, u8 *daddr) in ipoib_addr_hash() argument
1258 return hv & htbl->mask; in ipoib_addr_hash()
1265 struct ipoib_neigh_hash *htbl; in ipoib_neigh_get() local
1271 htbl = rcu_dereference_bh(ntbl->htbl); in ipoib_neigh_get()
1273 if (!htbl) in ipoib_neigh_get()
1276 hash_val = ipoib_addr_hash(htbl, daddr); in ipoib_neigh_get()
1277 for (neigh = rcu_dereference_bh(htbl->buckets[hash_val]); in ipoib_neigh_get()
1302 struct ipoib_neigh_hash *htbl; in __ipoib_reap_neigh() local
1311 htbl = rcu_dereference_protected(ntbl->htbl, in __ipoib_reap_neigh()
1314 if (!htbl) in __ipoib_reap_neigh()
[all …]
Dipoib.h305 struct ipoib_neigh_hash __rcu *htbl; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c118 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl) in mlx5dr_ste_calc_hash_index() argument
127 if (htbl->chunk->num_of_entries == 1 || htbl->byte_mask == 0) in mlx5dr_ste_calc_hash_index()
133 if (htbl->byte_mask & bit) in mlx5dr_ste_calc_hash_index()
140 index = crc32 & (htbl->chunk->num_of_entries - 1); in mlx5dr_ste_calc_hash_index()
301 u32 index = ste - ste->htbl->ste_arr; in mlx5dr_ste_get_icm_addr()
303 return ste->htbl->chunk->icm_addr + DR_STE_SIZE * index; in mlx5dr_ste_get_icm_addr()
308 u32 index = ste - ste->htbl->ste_arr; in mlx5dr_ste_get_mr_addr()
310 return ste->htbl->chunk->mr_addr + DR_STE_SIZE * index; in mlx5dr_ste_get_mr_addr()
315 u32 index = ste - ste->htbl->ste_arr; in mlx5dr_ste_get_miss_list()
317 return &ste->htbl->miss_list[index]; in mlx5dr_ste_get_miss_list()
[all …]
Ddr_send.c388 struct mlx5dr_ste_htbl *htbl, in dr_get_tbl_copy_details() argument
396 if (htbl->chunk->byte_size > dmn->send_ring->max_post_send_size) { in dr_get_tbl_copy_details()
397 *iterations = htbl->chunk->byte_size / in dr_get_tbl_copy_details()
404 *num_stes = htbl->chunk->num_of_entries; in dr_get_tbl_copy_details()
438 send_info.rkey = ste->htbl->chunk->rkey; in mlx5dr_send_postsend_ste()
444 struct mlx5dr_ste_htbl *htbl, in mlx5dr_send_postsend_htbl() argument
447 u32 byte_size = htbl->chunk->byte_size; in mlx5dr_send_postsend_htbl()
455 ret = dr_get_tbl_copy_details(dmn, htbl, &data, &byte_size, in mlx5dr_send_postsend_htbl()
469 struct mlx5dr_ste *ste = &htbl->ste_arr[ste_index + j]; in mlx5dr_send_postsend_htbl()
478 htbl->ste_arr[ste_index + j].hw_ste, in mlx5dr_send_postsend_htbl()
[all …]
Ddr_rule.c83 ste->htbl->miss_list = mlx5dr_ste_get_miss_list(orig_ste); in dr_rule_create_collision_entry()
180 new_ste->htbl->miss_list = mlx5dr_ste_get_miss_list(col_ste); in dr_rule_rehash_handle_collision()
308 mlx5dr_htbl_put(cur_ste->htbl); in dr_rule_rehash_copy_miss_list()
428 struct mlx5dr_ste_htbl *prev_htbl = cur_htbl->pointing_ste->htbl; in dr_rule_rehash_htbl()
518 ste->htbl->ctrl.num_of_collisions++; in dr_rule_handle_collision()
519 ste->htbl->ctrl.num_of_valid_entries++; in dr_rule_handle_collision()
609 static bool dr_rule_need_enlarge_hash(struct mlx5dr_ste_htbl *htbl, in dr_rule_need_enlarge_hash() argument
613 struct mlx5dr_ste_htbl_ctrl *ctrl = &htbl->ctrl; in dr_rule_need_enlarge_hash()
615 if (dmn->info.max_log_sw_icm_sz <= htbl->chunk_size) in dr_rule_need_enlarge_hash()
621 if (dr_get_bits_per_mask(htbl->byte_mask) * BITS_PER_BYTE <= htbl->chunk_size) in dr_rule_need_enlarge_hash()
[all …]
Ddr_types.h135 struct mlx5dr_ste_htbl *htbl; member
205 int mlx5dr_ste_htbl_free(struct mlx5dr_ste_htbl *htbl);
207 static inline void mlx5dr_htbl_put(struct mlx5dr_ste_htbl *htbl) in mlx5dr_htbl_put() argument
209 htbl->refcount--; in mlx5dr_htbl_put()
210 if (!htbl->refcount) in mlx5dr_htbl_put()
211 mlx5dr_ste_htbl_free(htbl); in mlx5dr_htbl_put()
214 static inline void mlx5dr_htbl_get(struct mlx5dr_ste_htbl *htbl) in mlx5dr_htbl_get() argument
216 htbl->refcount++; in mlx5dr_htbl_get()
220 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl);
1006 struct mlx5dr_ste_htbl *htbl,
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/
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()
/kernel/linux/linux-5.10/drivers/media/platform/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()