Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c206 static int alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg, in alloc_bfreg() argument
250 bfreg->map = up->map + map_offset(mdev, dbi); in alloc_bfreg()
251 bfreg->up = up; in alloc_bfreg()
252 bfreg->wc = map_wc; in alloc_bfreg()
253 bfreg->index = up->index + dbi / MLX5_BFREGS_PER_UAR; in alloc_bfreg()
259 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg, in mlx5_alloc_bfreg() argument
264 err = alloc_bfreg(mdev, bfreg, map_wc, fast_path); in mlx5_alloc_bfreg()
269 return alloc_bfreg(mdev, bfreg, false, fast_path); in mlx5_alloc_bfreg()
277 struct mlx5_sq_bfreg *bfreg) in addr_to_dbi_in_syspage() argument
285 uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT; in addr_to_dbi_in_syspage()
[all …]
Den_common.c114 err = mlx5_alloc_bfreg(mdev, &res->bfreg, false, false); in mlx5e_create_mdev_resources()
138 mlx5_free_bfreg(mdev, &res->bfreg); in mlx5e_destroy_mdev_resources()
Den_main.c983 sq->uar_map = mdev->mlx5e_res.bfreg.map; in mlx5e_alloc_xdpsq()
1054 sq->uar_map = mdev->mlx5e_res.bfreg.map; in mlx5e_alloc_icosq()
1129 sq->uar_map = mdev->mlx5e_res.bfreg.map; in mlx5e_alloc_txqsq()
1215 MLX5_SET(wq, wq, uar_page, mdev->mlx5e_res.bfreg.index); in mlx5e_create_sq()
/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h391 struct mlx5_sq_bfreg *bfreg; member
986 struct mlx5_sq_bfreg bfreg; member
Dqp.c1048 qp->bf.bfreg = &dev->fp_bfreg; in create_kernel_qp()
1050 qp->bf.bfreg = &dev->bfreg; in create_kernel_qp()
1056 uar_index = qp->bf.bfreg->index; in create_kernel_qp()
5334 mlx5_write64((__be32 *)ctrl, bf->bfreg->map + bf->offset); in _mlx5_ib_post_send()
Dmain.c6624 err = mlx5_alloc_bfreg(dev->mdev, &dev->bfreg, false, false); in mlx5_ib_stage_bfrag_init()
6638 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfrag_cleanup()