Searched refs:uars_per_sys_page (Results 1 – 2 of 2) sorted by relevance
62 static int uars_per_sys_page(struct mlx5_core_dev *mdev) in uars_per_sys_page() function105 bfregs = uars_per_sys_page(mdev) * MLX5_BFREGS_PER_UAR; in alloc_uars_page()
1583 static u16 calc_dynamic_bfregs(int uars_per_sys_page) in calc_dynamic_bfregs() argument1586 if (uars_per_sys_page == 1 && PAGE_SIZE > 4096) in calc_dynamic_bfregs()1596 int uars_per_sys_page; in calc_total_bfregs() local1609 uars_per_sys_page = get_uars_per_sys_page(dev, lib_uar_4k); in calc_total_bfregs()1610 bfregs_per_sys_page = uars_per_sys_page * MLX5_NON_FP_BFREGS_PER_UAR; 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()