Home
last modified time | relevance | path

Searched refs:hw_ste_p (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v1.h10 bool dr_ste_v1_is_miss_addr_set(u8 *hw_ste_p);
11 void dr_ste_v1_set_miss_addr(u8 *hw_ste_p, u64 miss_addr);
12 u64 dr_ste_v1_get_miss_addr(u8 *hw_ste_p);
13 void dr_ste_v1_set_byte_mask(u8 *hw_ste_p, u16 byte_mask);
14 u16 dr_ste_v1_get_byte_mask(u8 *hw_ste_p);
15 void dr_ste_v1_set_next_lu_type(u8 *hw_ste_p, u16 lu_type);
16 u16 dr_ste_v1_get_next_lu_type(u8 *hw_ste_p);
17 void dr_ste_v1_set_hit_addr(u8 *hw_ste_p, u64 icm_addr, u32 ht_size);
18 void dr_ste_v1_init(u8 *hw_ste_p, u16 lu_type, bool is_rx, u16 gvmi);
19 void dr_ste_v1_prepare_for_postsend(u8 *hw_ste_p, u32 ste_size);
Ddr_ste.h150 void (*ste_init)(u8 *hw_ste_p, u16 lu_type,
152 void (*set_next_lu_type)(u8 *hw_ste_p, u16 lu_type);
153 u16 (*get_next_lu_type)(u8 *hw_ste_p);
154 bool (*is_miss_addr_set)(u8 *hw_ste_p);
155 void (*set_miss_addr)(u8 *hw_ste_p, u64 miss_addr);
156 u64 (*get_miss_addr)(u8 *hw_ste_p);
157 void (*set_hit_addr)(u8 *hw_ste_p, u64 icm_addr, u32 ht_size);
158 void (*set_byte_mask)(u8 *hw_ste_p, u16 byte_mask);
159 u16 (*get_byte_mask)(u8 *hw_ste_p);
202 void (*prepare_for_postsend)(u8 *hw_ste_p, u32 ste_size);
Ddr_ste_v0.c236 static void dr_ste_v0_set_entry_type(u8 *hw_ste_p, u8 entry_type) in dr_ste_v0_set_entry_type() argument
238 MLX5_SET(ste_general, hw_ste_p, entry_type, entry_type); in dr_ste_v0_set_entry_type()
241 static u8 dr_ste_v0_get_entry_type(u8 *hw_ste_p) in dr_ste_v0_get_entry_type() argument
243 return MLX5_GET(ste_general, hw_ste_p, entry_type); in dr_ste_v0_get_entry_type()
246 static void dr_ste_v0_set_miss_addr(u8 *hw_ste_p, u64 miss_addr) in dr_ste_v0_set_miss_addr() argument
251 MLX5_SET(ste_rx_steering_mult, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v0_set_miss_addr()
252 MLX5_SET(ste_rx_steering_mult, hw_ste_p, miss_address_31_6, index); in dr_ste_v0_set_miss_addr()
255 static u64 dr_ste_v0_get_miss_addr(u8 *hw_ste_p) in dr_ste_v0_get_miss_addr() argument
258 ((u64)MLX5_GET(ste_rx_steering_mult, hw_ste_p, miss_address_31_6) | in dr_ste_v0_get_miss_addr()
259 ((u64)MLX5_GET(ste_rx_steering_mult, hw_ste_p, miss_address_39_32)) << 26); in dr_ste_v0_get_miss_addr()
[all …]
Ddr_ste_v1.c266 static void dr_ste_v1_set_entry_type(u8 *hw_ste_p, u8 entry_type) in dr_ste_v1_set_entry_type() argument
268 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, entry_type); in dr_ste_v1_set_entry_type()
271 bool dr_ste_v1_is_miss_addr_set(u8 *hw_ste_p) in dr_ste_v1_is_miss_addr_set() argument
273 u8 entry_type = MLX5_GET(ste_match_bwc_v1, hw_ste_p, entry_format); in dr_ste_v1_is_miss_addr_set()
281 void dr_ste_v1_set_miss_addr(u8 *hw_ste_p, u64 miss_addr) in dr_ste_v1_set_miss_addr() argument
285 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v1_set_miss_addr()
286 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6, index); in dr_ste_v1_set_miss_addr()
289 u64 dr_ste_v1_get_miss_addr(u8 *hw_ste_p) in dr_ste_v1_get_miss_addr() argument
292 ((u64)MLX5_GET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6) | in dr_ste_v1_get_miss_addr()
293 ((u64)MLX5_GET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32)) << 26); in dr_ste_v1_get_miss_addr()
[all …]
Ddr_ste.c27 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl) in mlx5dr_ste_calc_hash_index() argument
30 struct dr_hw_ste_format *hw_ste = (struct dr_hw_ste_format *)hw_ste_p; in mlx5dr_ste_calc_hash_index()
68 static u8 *dr_ste_get_tag(u8 *hw_ste_p) in dr_ste_get_tag() argument
70 struct dr_hw_ste_format *hw_ste = (struct dr_hw_ste_format *)hw_ste_p; in dr_ste_get_tag()
75 void mlx5dr_ste_set_bit_mask(u8 *hw_ste_p, u8 *bit_mask) in mlx5dr_ste_set_bit_mask() argument
77 struct dr_hw_ste_format *hw_ste = (struct dr_hw_ste_format *)hw_ste_p; in mlx5dr_ste_set_bit_mask()
95 u8 *hw_ste_p) in mlx5dr_ste_is_miss_addr_set() argument
101 return ste_ctx->is_miss_addr_set(hw_ste_p); in mlx5dr_ste_is_miss_addr_set()
105 u8 *hw_ste_p, u64 miss_addr) in mlx5dr_ste_set_miss_addr() argument
107 ste_ctx->set_miss_addr(hw_ste_p, miss_addr); in mlx5dr_ste_set_miss_addr()
[all …]
Ddr_types.h248 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl);
249 bool mlx5dr_ste_is_miss_addr_set(struct mlx5dr_ste_ctx *ste_ctx, u8 *hw_ste_p);
257 void mlx5dr_ste_set_bit_mask(u8 *hw_ste_p, u8 *bit_mask);
1395 u8 *hw_ste_p, u32 ste_size);