Searched refs:htbl (Results 1 – 8 of 8) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ste.c | 27 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl) in mlx5dr_ste_calc_hash_index() argument 36 if (htbl->chunk->num_of_entries == 1 || htbl->byte_mask == 0) in mlx5dr_ste_calc_hash_index() 42 if (htbl->byte_mask & bit) in mlx5dr_ste_calc_hash_index() 49 index = crc32 & (htbl->chunk->num_of_entries - 1); in mlx5dr_ste_calc_hash_index() 117 u32 index = ste - ste->htbl->ste_arr; in mlx5dr_ste_get_icm_addr() 119 return ste->htbl->chunk->icm_addr + DR_STE_SIZE * index; in mlx5dr_ste_get_icm_addr() 124 u32 index = ste - ste->htbl->ste_arr; in mlx5dr_ste_get_mr_addr() 126 return ste->htbl->chunk->mr_addr + DR_STE_SIZE * index; in mlx5dr_ste_get_mr_addr() 131 u32 index = ste - ste->htbl->ste_arr; in mlx5dr_ste_get_miss_list() 133 return &ste->htbl->miss_list[index]; in mlx5dr_ste_get_miss_list() [all …]
|
D | dr_rule.c | 84 ste->htbl->pointing_ste = orig_ste->htbl->pointing_ste; in dr_rule_create_collision_entry() 87 ste->htbl->miss_list = mlx5dr_ste_get_miss_list(orig_ste); in dr_rule_create_collision_entry() 190 new_ste->htbl->pointing_ste = col_ste->htbl->pointing_ste; in dr_rule_rehash_handle_collision() 193 new_ste->htbl->miss_list = mlx5dr_ste_get_miss_list(col_ste); in dr_rule_rehash_handle_collision() 321 mlx5dr_htbl_put(cur_ste->htbl); in dr_rule_rehash_copy_miss_list() 442 struct mlx5dr_ste_htbl *prev_htbl = cur_htbl->pointing_ste->htbl; in dr_rule_rehash_htbl() 537 ste->htbl->ctrl.num_of_collisions++; in dr_rule_handle_collision() 538 ste->htbl->ctrl.num_of_valid_entries++; in dr_rule_handle_collision() 609 return first_ste->htbl->pointing_ste; in dr_rule_get_pointed_ste() 660 static bool dr_rule_need_enlarge_hash(struct mlx5dr_ste_htbl *htbl, in dr_rule_need_enlarge_hash() argument [all …]
|
D | dr_types.h | 155 struct mlx5dr_ste_htbl *htbl; member 226 int mlx5dr_ste_htbl_free(struct mlx5dr_ste_htbl *htbl); 228 static inline void mlx5dr_htbl_put(struct mlx5dr_ste_htbl *htbl) in mlx5dr_htbl_put() argument 230 htbl->refcount--; in mlx5dr_htbl_put() 231 if (!htbl->refcount) in mlx5dr_htbl_put() 232 mlx5dr_ste_htbl_free(htbl); in mlx5dr_htbl_put() 235 static inline void mlx5dr_htbl_get(struct mlx5dr_ste_htbl *htbl) in mlx5dr_htbl_get() argument 237 htbl->refcount++; in mlx5dr_htbl_get() 241 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl); 1096 mlx5dr_ste_htbl_increase_threshold(struct mlx5dr_ste_htbl *htbl) in mlx5dr_ste_htbl_increase_threshold() argument [all …]
|
D | dr_send.c | 404 struct mlx5dr_ste_htbl *htbl, in dr_get_tbl_copy_details() argument 412 if (htbl->chunk->byte_size > dmn->send_ring->max_post_send_size) { in dr_get_tbl_copy_details() 413 *iterations = htbl->chunk->byte_size / in dr_get_tbl_copy_details() 420 *num_stes = htbl->chunk->num_of_entries; in dr_get_tbl_copy_details() 456 send_info.rkey = ste->htbl->chunk->rkey; in mlx5dr_send_postsend_ste() 462 struct mlx5dr_ste_htbl *htbl, in mlx5dr_send_postsend_htbl() argument 465 u32 byte_size = htbl->chunk->byte_size; 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->ste_arr[ste_index + j]; in mlx5dr_send_postsend_htbl() 498 htbl->ste_arr[ste_index + j].hw_ste, in mlx5dr_send_postsend_htbl() [all …]
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 1254 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 …]
|
D | ipoib.h | 305 struct ipoib_neigh_hash __rcu *htbl; member
|
/drivers/media/platform/ |
D | rcar_jpu.c | 553 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()
|
/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 642 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()
|