Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dmain.c1612 struct mlx5_bfreg_info *bfregi) in calc_total_bfregs() argument
1634 bfregi->num_static_sys_pages = req->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs()
1635 bfregi->num_dyn_bfregs = ALIGN(calc_dynamic_bfregs(uars_per_sys_page), bfregs_per_sys_page); in calc_total_bfregs()
1636 bfregi->total_num_bfregs = req->total_num_bfregs + bfregi->num_dyn_bfregs; in calc_total_bfregs()
1637 bfregi->num_sys_pages = bfregi->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs()
1642 req->total_num_bfregs, bfregi->total_num_bfregs, in calc_total_bfregs()
1643 bfregi->num_sys_pages); in calc_total_bfregs()
1650 struct mlx5_bfreg_info *bfregi; in allocate_uars() local
1654 bfregi = &context->bfregi; in allocate_uars()
1655 for (i = 0; i < bfregi->num_static_sys_pages; i++) { in allocate_uars()
[all …]
Dqp.c697 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs() argument
699 return get_uars_per_sys_page(dev, bfregi->lib_uar_4k) * in max_bfregs()
700 bfregi->num_static_sys_pages * MLX5_NON_FP_BFREGS_PER_UAR; in max_bfregs()
704 struct mlx5_bfreg_info *bfregi) in num_med_bfreg() argument
708 n = max_bfregs(dev, bfregi) - bfregi->num_low_latency_bfregs - in num_med_bfreg()
715 struct mlx5_bfreg_info *bfregi) in first_med_bfreg() argument
717 return num_med_bfreg(dev, bfregi) ? 1 : -ENOMEM; in first_med_bfreg()
721 struct mlx5_bfreg_info *bfregi) in first_hi_bfreg() argument
725 med = num_med_bfreg(dev, bfregi); in first_hi_bfreg()
730 struct mlx5_bfreg_info *bfregi) in alloc_high_class_bfreg() argument
[all …]
Dmlx5_ib.h203 struct mlx5_bfreg_info bfregi; member
1487 void mlx5_ib_free_bfreg(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi,
1574 struct mlx5_bfreg_info *bfregi, u32 bfregn,
Dcq.c793 } else if (context->bfregi.lib_uar_dyn) { in create_cq_user()
797 *index = context->bfregi.sys_pages[0]; in create_cq_user()
Ddevx.c1053 dev_idx = bfregn_to_uar_index(dev, &c->bfregi, user_idx, true); in UVERBS_HANDLER()