Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v0.c235 static void dr_ste_v0_set_entry_type(u8 *hw_ste_p, u8 entry_type) in dr_ste_v0_set_entry_type() argument
237 MLX5_SET(ste_general, hw_ste_p, entry_type, entry_type); in dr_ste_v0_set_entry_type()
240 static u8 dr_ste_v0_get_entry_type(u8 *hw_ste_p) in dr_ste_v0_get_entry_type() argument
242 return MLX5_GET(ste_general, hw_ste_p, entry_type); in dr_ste_v0_get_entry_type()
245 static void dr_ste_v0_set_miss_addr(u8 *hw_ste_p, u64 miss_addr) in dr_ste_v0_set_miss_addr() argument
250 MLX5_SET(ste_rx_steering_mult, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v0_set_miss_addr()
251 MLX5_SET(ste_rx_steering_mult, hw_ste_p, miss_address_31_6, index); in dr_ste_v0_set_miss_addr()
254 static u64 dr_ste_v0_get_miss_addr(u8 *hw_ste_p) in dr_ste_v0_get_miss_addr() argument
257 ((u64)MLX5_GET(ste_rx_steering_mult, hw_ste_p, miss_address_31_6) | in dr_ste_v0_get_miss_addr()
258 ((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.h148 void (*ste_init)(u8 *hw_ste_p, u16 lu_type,
150 void (*set_next_lu_type)(u8 *hw_ste_p, u16 lu_type);
151 u16 (*get_next_lu_type)(u8 *hw_ste_p);
152 void (*set_miss_addr)(u8 *hw_ste_p, u64 miss_addr);
153 u64 (*get_miss_addr)(u8 *hw_ste_p);
154 void (*set_hit_addr)(u8 *hw_ste_p, u64 icm_addr, u32 ht_size);
155 void (*set_byte_mask)(u8 *hw_ste_p, u16 byte_mask);
156 u16 (*get_byte_mask)(u8 *hw_ste_p);
195 void (*prepare_for_postsend)(u8 *hw_ste_p, u32 ste_size);
Ddr_ste_v1.c259 static void dr_ste_v1_set_entry_type(u8 *hw_ste_p, u8 entry_type) in dr_ste_v1_set_entry_type() argument
261 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, entry_type); in dr_ste_v1_set_entry_type()
264 static void dr_ste_v1_set_miss_addr(u8 *hw_ste_p, u64 miss_addr) in dr_ste_v1_set_miss_addr() argument
268 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v1_set_miss_addr()
269 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6, index); in dr_ste_v1_set_miss_addr()
272 static u64 dr_ste_v1_get_miss_addr(u8 *hw_ste_p) in dr_ste_v1_get_miss_addr() argument
275 ((u64)MLX5_GET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6) | in dr_ste_v1_get_miss_addr()
276 ((u64)MLX5_GET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32)) << 26); in dr_ste_v1_get_miss_addr()
281 static void dr_ste_v1_set_byte_mask(u8 *hw_ste_p, u16 byte_mask) in dr_ste_v1_set_byte_mask() argument
283 MLX5_SET(ste_match_bwc_v1, hw_ste_p, byte_mask, byte_mask); in dr_ste_v1_set_byte_mask()
[all …]
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 struct dr_hw_ste_format *hw_ste = (struct dr_hw_ste_format *)hw_ste_p; in mlx5dr_ste_calc_hash_index()
66 static u8 *dr_ste_get_tag(u8 *hw_ste_p) in dr_ste_get_tag() argument
68 struct dr_hw_ste_format *hw_ste = (struct dr_hw_ste_format *)hw_ste_p; in dr_ste_get_tag()
73 void mlx5dr_ste_set_bit_mask(u8 *hw_ste_p, u8 *bit_mask) in mlx5dr_ste_set_bit_mask() argument
75 struct dr_hw_ste_format *hw_ste = (struct dr_hw_ste_format *)hw_ste_p; in mlx5dr_ste_set_bit_mask()
93 u8 *hw_ste_p, u64 miss_addr) in mlx5dr_ste_set_miss_addr() argument
95 ste_ctx->set_miss_addr(hw_ste_p, miss_addr); in mlx5dr_ste_set_miss_addr()
101 u8 *hw_ste_p = ste->hw_ste; in dr_ste_always_miss_addr() local
103 ste_ctx->set_next_lu_type(hw_ste_p, MLX5DR_STE_LU_TYPE_DONT_CARE); in dr_ste_always_miss_addr()
[all …]
Ddr_types.h242 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl);
250 void mlx5dr_ste_set_bit_mask(u8 *hw_ste_p, u8 *bit_mask);
1230 u8 *hw_ste_p, u32 ste_size);