Home
last modified time | relevance | path

Searched refs:uars_per_sys_page (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c61 static int uars_per_sys_page(struct mlx5_core_dev *mdev) in uars_per_sys_page() function
104 bfregs = uars_per_sys_page(mdev) * MLX5_BFREGS_PER_UAR; in alloc_uars_page()
/drivers/infiniband/hw/mlx5/
Dmain.c1602 static u16 calc_dynamic_bfregs(int uars_per_sys_page) in calc_dynamic_bfregs() argument
1605 if (uars_per_sys_page == 1 && PAGE_SIZE > 4096) in calc_dynamic_bfregs()
1615 int uars_per_sys_page; in calc_total_bfregs() local
1628 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()