Searched refs:bfregi (Results 1 – 5 of 5) sorted by relevance
/drivers/infiniband/hw/mlx5/ |
D | main.c | 1613 struct mlx5_bfreg_info *bfregi) in calc_total_bfregs() argument 1635 bfregi->num_static_sys_pages = req->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs() 1636 bfregi->num_dyn_bfregs = ALIGN(calc_dynamic_bfregs(uars_per_sys_page), bfregs_per_sys_page); in calc_total_bfregs() 1637 bfregi->total_num_bfregs = req->total_num_bfregs + bfregi->num_dyn_bfregs; in calc_total_bfregs() 1638 bfregi->num_sys_pages = bfregi->total_num_bfregs / bfregs_per_sys_page; in calc_total_bfregs() 1643 req->total_num_bfregs, bfregi->total_num_bfregs, in calc_total_bfregs() 1644 bfregi->num_sys_pages); in calc_total_bfregs() 1651 struct mlx5_bfreg_info *bfregi; in allocate_uars() local 1655 bfregi = &context->bfregi; in allocate_uars() 1656 for (i = 0; i < bfregi->num_static_sys_pages; i++) { in allocate_uars() [all …]
|
D | qp.c | 582 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs() argument 584 return get_num_static_uars(dev, bfregi) * MLX5_NON_FP_BFREGS_PER_UAR; in max_bfregs() 588 struct mlx5_bfreg_info *bfregi) in num_med_bfreg() argument 592 n = max_bfregs(dev, bfregi) - bfregi->num_low_latency_bfregs - in num_med_bfreg() 599 struct mlx5_bfreg_info *bfregi) in first_med_bfreg() argument 601 return num_med_bfreg(dev, bfregi) ? 1 : -ENOMEM; in first_med_bfreg() 605 struct mlx5_bfreg_info *bfregi) in first_hi_bfreg() argument 609 med = num_med_bfreg(dev, bfregi); in first_hi_bfreg() 614 struct mlx5_bfreg_info *bfregi) in alloc_high_class_bfreg() argument 618 for (i = first_hi_bfreg(dev, bfregi); i < max_bfregs(dev, bfregi); i++) { in alloc_high_class_bfreg() [all …]
|
D | mlx5_ib.h | 132 struct mlx5_bfreg_info bfregi; member 1329 void mlx5_ib_free_bfreg(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi, 1466 struct mlx5_bfreg_info *bfregi) in get_num_static_uars() argument 1468 return get_uars_per_sys_page(dev, bfregi->lib_uar_4k) * bfregi->num_static_sys_pages; in get_num_static_uars() 1475 struct mlx5_bfreg_info *bfregi, u32 bfregn,
|
D | cq.c | 743 *index = context->bfregi.sys_pages[0]; in create_cq_user()
|
D | devx.c | 1015 dev_idx = bfregn_to_uar_index(dev, &c->bfregi, user_idx, true); in UVERBS_HANDLER()
|