Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c204 static int alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg, in alloc_bfreg() argument
248 bfreg->map = up->map + map_offset(mdev, dbi); in alloc_bfreg()
249 bfreg->up = up; in alloc_bfreg()
250 bfreg->wc = map_wc; in alloc_bfreg()
251 bfreg->index = up->index + dbi / MLX5_BFREGS_PER_UAR; in alloc_bfreg()
257 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg, in mlx5_alloc_bfreg() argument
262 err = alloc_bfreg(mdev, bfreg, map_wc, fast_path); in mlx5_alloc_bfreg()
267 return alloc_bfreg(mdev, bfreg, false, fast_path); in mlx5_alloc_bfreg()
275 struct mlx5_sq_bfreg *bfreg) in addr_to_dbi_in_syspage() argument
283 uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT; in addr_to_dbi_in_syspage()
[all …]
Den_common.c123 err = mlx5_alloc_bfreg(mdev, &res->bfreg, false, false); in mlx5e_create_mdev_resources()
147 mlx5_free_bfreg(mdev, &res->bfreg); in mlx5e_destroy_mdev_resources()
Den_main.c993 sq->uar_map = mdev->mlx5e_res.bfreg.map; in mlx5e_alloc_xdpsq()
1075 sq->uar_map = mdev->mlx5e_res.bfreg.map; in mlx5e_alloc_icosq()
1177 sq->uar_map = mdev->mlx5e_res.bfreg.map; in mlx5e_alloc_txqsq()
1261 MLX5_SET(wq, wq, uar_page, mdev->mlx5e_res.bfreg.index); in mlx5e_create_sq()
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddriver.h623 struct mlx5_sq_bfreg bfreg; member
1022 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1024 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dmem.c251 bf->bfreg->map + bf->offset + i * 8); in post_send_nop()
Dmlx5_ib.h379 struct mlx5_sq_bfreg *bfreg; member
1009 struct mlx5_sq_bfreg bfreg; member
Dqp.c1050 qp->bf.bfreg = &dev->fp_bfreg; in _create_kernel_qp()
1052 qp->bf.bfreg = &dev->wc_bfreg; in _create_kernel_qp()
1054 qp->bf.bfreg = &dev->bfreg; in _create_kernel_qp()
1060 uar_index = qp->bf.bfreg->index; in _create_kernel_qp()
Dmain.c4355 err = mlx5_alloc_bfreg(dev->mdev, &dev->bfreg, false, false); in mlx5_ib_stage_bfrag_init()
4361 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfrag_init()
4369 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfrag_cleanup()
Dwr.c1442 mlx5_write64((__be32 *)ctrl, bf->bfreg->map + bf->offset); in mlx5_ib_post_send()