Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dmain.c1594 struct mlx5_bfreg_info *bfregi) in calc_total_bfregs() argument
1616 bfregi->num_static_sys_pages = req->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs()
1617 bfregi->num_dyn_bfregs = ALIGN(calc_dynamic_bfregs(uars_per_sys_page), bfregs_per_sys_page); in calc_total_bfregs()
1618 bfregi->total_num_bfregs = req->total_num_bfregs + bfregi->num_dyn_bfregs; in calc_total_bfregs()
1619 bfregi->num_sys_pages = bfregi->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs()
1624 req->total_num_bfregs, bfregi->total_num_bfregs, in calc_total_bfregs()
1625 bfregi->num_sys_pages); in calc_total_bfregs()
1632 struct mlx5_bfreg_info *bfregi; in allocate_uars() local
1636 bfregi = &context->bfregi; in allocate_uars()
1637 for (i = 0; i < bfregi->num_static_sys_pages; i++) { in allocate_uars()
[all …]
Dqp.c616 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs() argument
618 return get_uars_per_sys_page(dev, bfregi->lib_uar_4k) * in max_bfregs()
619 bfregi->num_static_sys_pages * MLX5_NON_FP_BFREGS_PER_UAR; in max_bfregs()
623 struct mlx5_bfreg_info *bfregi) in num_med_bfreg() argument
627 n = max_bfregs(dev, bfregi) - bfregi->num_low_latency_bfregs - in num_med_bfreg()
634 struct mlx5_bfreg_info *bfregi) in first_med_bfreg() argument
636 return num_med_bfreg(dev, bfregi) ? 1 : -ENOMEM; in first_med_bfreg()
640 struct mlx5_bfreg_info *bfregi) in first_hi_bfreg() argument
644 med = num_med_bfreg(dev, bfregi); in first_hi_bfreg()
649 struct mlx5_bfreg_info *bfregi) in alloc_high_class_bfreg() argument
[all …]
Dmlx5_ib.h197 struct mlx5_bfreg_info bfregi; member
1427 void mlx5_ib_free_bfreg(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi,
1514 struct mlx5_bfreg_info *bfregi, u32 bfregn,
Dcq.c790 } else if (context->bfregi.lib_uar_dyn) { in create_cq_user()
794 *index = context->bfregi.sys_pages[0]; in create_cq_user()
Ddevx.c1039 dev_idx = bfregn_to_uar_index(dev, &c->bfregi, user_idx, true); in UVERBS_HANDLER()