Home
last modified time | relevance | path

Searched refs:tir (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drss.c74 struct mlx5e_tir *tir[MLX5E_NUM_INDIR_TIRS]; member
170 return inner ? &rss->inner_tir[tt] : &rss->tir[tt]; in rss_get_tirp()
197 struct mlx5e_tir *tir; in mlx5e_rss_create_tir() local
212 tir = kvzalloc(sizeof(*tir), GFP_KERNEL); in mlx5e_rss_create_tir()
213 if (!tir) in mlx5e_rss_create_tir()
229 err = mlx5e_tir_init(tir, builder, rss->mdev, true); in mlx5e_rss_create_tir()
237 *tir_p = tir; in mlx5e_rss_create_tir()
241 kvfree(tir); in mlx5e_rss_create_tir()
249 struct mlx5e_tir *tir; in mlx5e_rss_destroy_tir() local
255 tir = *tir_p; in mlx5e_rss_destroy_tir()
[all …]
H A Dtir.c161 int mlx5e_tir_init(struct mlx5e_tir *tir, struct mlx5e_tir_builder *builder, in mlx5e_tir_init() argument
166 tir->mdev = mdev; in mlx5e_tir_init()
168 err = mlx5_core_create_tir(tir->mdev, builder->in, &tir->tirn); in mlx5e_tir_init()
173 struct mlx5e_hw_objs *res = &tir->mdev->mlx5e_res.hw_objs; in mlx5e_tir_init()
176 list_add(&tir->list, &res->td.tirs_list); in mlx5e_tir_init()
179 INIT_LIST_HEAD(&tir->list); in mlx5e_tir_init()
185 void mlx5e_tir_destroy(struct mlx5e_tir *tir) in mlx5e_tir_destroy() argument
187 struct mlx5e_hw_objs *res = &tir->mdev->mlx5e_res.hw_objs; in mlx5e_tir_destroy()
194 if (!list_empty(&tir->list)) { in mlx5e_tir_destroy()
196 list_del(&tir->list); in mlx5e_tir_destroy()
[all …]
H A Dtir.h47 int mlx5e_tir_init(struct mlx5e_tir *tir, struct mlx5e_tir_builder *builder,
49 void mlx5e_tir_destroy(struct mlx5e_tir *tir);
51 static inline u32 mlx5e_tir_get_tirn(struct mlx5e_tir *tir) in mlx5e_tir_get_tirn() argument
53 return tir->tirn; in mlx5e_tir_get_tirn()
56 int mlx5e_tir_modify(struct mlx5e_tir *tir, struct mlx5e_tir_builder *builder);
H A Dtrap.c102 static int mlx5e_create_trap_direct_rq_tir(struct mlx5_core_dev *mdev, struct mlx5e_tir *tir, in mlx5e_create_trap_direct_rq_tir() argument
113 err = mlx5e_tir_init(tir, builder, mdev, true); in mlx5e_create_trap_direct_rq_tir()
158 err = mlx5e_create_trap_direct_rq_tir(t->mdev, &t->tir, t->rq.rqn); in mlx5e_open_trap()
174 mlx5e_tir_destroy(&trap->tir); in mlx5e_close_trap()
217 return en_trap->tir.tirn; in mlx5e_trap_get_tirn()
H A Drx_res.c32 struct mlx5e_tir tir; member
415 err = mlx5e_tir_init(&res->ptp.tir, builder, res->mdev, true); in mlx5e_rx_res_ptp_init()
443 mlx5e_tir_destroy(&res->ptp.tir); in mlx5e_rx_res_ptp_destroy()
522 return mlx5e_tir_get_tirn(&res->ptp.tir); in mlx5e_rx_res_get_tirn_ptp()
679 struct mlx5e_tir *tir) in mlx5e_rx_res_tls_tir_create() argument
698 err = mlx5e_tir_init(tir, builder, res->mdev, false); in mlx5e_rx_res_tls_tir_create()
H A Dtrap.h13 struct mlx5e_tir tir; member
H A Drx_res.h70 struct mlx5e_tir *tir);
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_rx.c52 struct mlx5e_tir tir; member
115 mlx5e_tir_get_tirn(&priv_rx->tir), in accel_rule_handle_work()
150 mlx5e_tir_get_tirn(&priv_rx->tir), in post_static_params()
181 mlx5e_tir_get_tirn(&priv_rx->tir), in post_progress_params()
303 psv->psv_index[0] = cpu_to_be32(mlx5e_tir_get_tirn(&priv_rx->tir)); in resync_post_get_progress_params()
656 err = mlx5e_rx_res_tls_tir_create(priv->rx_res, rxq, &priv_rx->tir); in mlx5e_ktls_add_rx()
677 mlx5e_tir_destroy(&priv_rx->tir); in mlx5e_ktls_add_rx()
710 mlx5e_tir_destroy(&priv_rx->tir); in mlx5e_ktls_del_rx()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_common.c223 struct mlx5e_tir *tir; in mlx5e_refresh_tirs() local
247 list_for_each_entry(tir, &mdev->mlx5e_res.hw_objs.td.tirs_list, list) { in mlx5e_refresh_tirs()
248 tirn = tir->tirn; in mlx5e_refresh_tirs()
H A DMakefile25 mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \