Searched refs:bfregi (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | main.c | 1577 struct mlx5_bfreg_info *bfregi) in calc_total_bfregs() argument 1599 bfregi->num_static_sys_pages = req->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs() 1600 bfregi->num_dyn_bfregs = ALIGN(calc_dynamic_bfregs(uars_per_sys_page), bfregs_per_sys_page); in calc_total_bfregs() 1601 bfregi->total_num_bfregs = req->total_num_bfregs + bfregi->num_dyn_bfregs; in calc_total_bfregs() 1602 bfregi->num_sys_pages = bfregi->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs() 1607 req->total_num_bfregs, bfregi->total_num_bfregs, in calc_total_bfregs() 1608 bfregi->num_sys_pages); in calc_total_bfregs() 1615 struct mlx5_bfreg_info *bfregi; in allocate_uars() local 1619 bfregi = &context->bfregi; in allocate_uars() 1620 for (i = 0; i < bfregi->num_static_sys_pages; i++) { in allocate_uars() [all …]
|
D | qp.c | 615 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs() argument 617 return get_num_static_uars(dev, bfregi) * MLX5_NON_FP_BFREGS_PER_UAR; in max_bfregs() 621 struct mlx5_bfreg_info *bfregi) in num_med_bfreg() argument 625 n = max_bfregs(dev, bfregi) - bfregi->num_low_latency_bfregs - in num_med_bfreg() 632 struct mlx5_bfreg_info *bfregi) in first_med_bfreg() argument 634 return num_med_bfreg(dev, bfregi) ? 1 : -ENOMEM; in first_med_bfreg() 638 struct mlx5_bfreg_info *bfregi) in first_hi_bfreg() argument 642 med = num_med_bfreg(dev, bfregi); in first_hi_bfreg() 647 struct mlx5_bfreg_info *bfregi) in alloc_high_class_bfreg() argument 651 for (i = first_hi_bfreg(dev, bfregi); i < max_bfregs(dev, bfregi); i++) { in alloc_high_class_bfreg() [all …]
|
D | mlx5_ib.h | 129 struct mlx5_bfreg_info bfregi; member 1358 void mlx5_ib_free_bfreg(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi, 1454 struct mlx5_bfreg_info *bfregi) in get_num_static_uars() argument 1456 return get_uars_per_sys_page(dev, bfregi->lib_uar_4k) * bfregi->num_static_sys_pages; in get_num_static_uars() 1463 struct mlx5_bfreg_info *bfregi, u32 bfregn,
|
D | cq.c | 771 } else if (context->bfregi.lib_uar_dyn) { in create_cq_user() 775 *index = context->bfregi.sys_pages[0]; in create_cq_user()
|
D | devx.c | 966 dev_idx = bfregn_to_uar_index(dev, &c->bfregi, user_idx, true); in UVERBS_HANDLER()
|