Searched refs:uars_per_sys_page (Results 1 – 2 of 2) sorted by relevance
61 static int uars_per_sys_page(struct mlx5_core_dev *mdev) in uars_per_sys_page() function104 bfregs = uars_per_sys_page(mdev) * MLX5_BFREGS_PER_UAR; in alloc_uars_page()
1602 static u16 calc_dynamic_bfregs(int uars_per_sys_page) in calc_dynamic_bfregs() argument1605 if (uars_per_sys_page == 1 && PAGE_SIZE > 4096) in calc_dynamic_bfregs()1615 int uars_per_sys_page; in calc_total_bfregs() local1628 uars_per_sys_page = get_uars_per_sys_page(dev, lib_uar_4k); in calc_total_bfregs()1629 bfregs_per_sys_page = uars_per_sys_page * MLX5_NON_FP_BFREGS_PER_UAR; 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()