Home
last modified time | relevance | path

Searched refs:bfreg (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c205 static int alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg, in alloc_bfreg() argument
249 bfreg->map = up->map + map_offset(mdev, dbi); in alloc_bfreg()
250 bfreg->up = up; in alloc_bfreg()
251 bfreg->wc = map_wc; in alloc_bfreg()
252 bfreg->index = up->index + dbi / MLX5_BFREGS_PER_UAR; in alloc_bfreg()
258 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg, in mlx5_alloc_bfreg() argument
263 err = alloc_bfreg(mdev, bfreg, map_wc, fast_path); in mlx5_alloc_bfreg()
268 return alloc_bfreg(mdev, bfreg, false, fast_path); in mlx5_alloc_bfreg()
276 struct mlx5_sq_bfreg *bfreg) in addr_to_dbi_in_syspage() argument
284 uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT; in addr_to_dbi_in_syspage()
[all …]
Den_common.c98 err = mlx5_alloc_bfreg(mdev, &res->bfreg, false, false); in mlx5e_create_mdev_resources()
122 mlx5_free_bfreg(mdev, &res->bfreg); in mlx5e_destroy_mdev_resources()
Den_main.c1299 sq->uar_map = mdev->mlx5e_res.hw_objs.bfreg.map; in mlx5e_alloc_xdpsq()
1384 sq->uar_map = mdev->mlx5e_res.hw_objs.bfreg.map; in mlx5e_alloc_icosq()
1468 sq->uar_map = mdev->mlx5e_res.hw_objs.bfreg.map; in mlx5e_alloc_txqsq()
1548 MLX5_SET(wq, wq, uar_page, mdev->mlx5e_res.hw_objs.bfreg.index); in mlx5e_create_sq()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Daso.c166 sq->uar_map = mdev->mlx5e_res.hw_objs.bfreg.map; in mlx5_aso_alloc_sq()
206 MLX5_SET(wq, wq, uar_page, mdev->mlx5e_res.hw_objs.bfreg.index); in create_aso_sq()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dmem.c153 bf->bfreg->map + bf->offset + i * 8); in post_send_nop()
Dmlx5_ib.h453 struct mlx5_sq_bfreg *bfreg; member
1087 struct mlx5_sq_bfreg bfreg; member
Dqp.c1028 qp->bf.bfreg = &dev->fp_bfreg; in _create_kernel_qp()
1030 qp->bf.bfreg = &dev->wc_bfreg; in _create_kernel_qp()
1032 qp->bf.bfreg = &dev->bfreg; in _create_kernel_qp()
1038 uar_index = qp->bf.bfreg->index; in _create_kernel_qp()
Dmain.c3973 err = mlx5_alloc_bfreg(dev->mdev, &dev->bfreg, false, false); in mlx5_ib_stage_bfrag_init()
3979 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfrag_init()
3987 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfrag_cleanup()
Dwr.c1044 mlx5_write64((__be32 *)ctrl, bf->bfreg->map + bf->offset); in mlx5r_ring_db()
/linux-6.1.9/include/linux/mlx5/
Ddriver.h675 struct mlx5_sq_bfreg bfreg; member
1098 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1100 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dptp.c235 sq->uar_map = mdev->mlx5e_res.hw_objs.bfreg.map; in mlx5e_ptp_alloc_txqsq()