Home
last modified time | relevance | path

Searched refs:MLX5_BFREGS_PER_UAR (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c105 bfregs = uars_per_sys_page(mdev) * MLX5_BFREGS_PER_UAR; in alloc_uars_page()
120 if ((i % MLX5_BFREGS_PER_UAR) < MLX5_NON_FP_BFREGS_PER_UAR) in alloc_uars_page()
126 up->fp_avail = bfregs * MLX5_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR; in alloc_uars_page()
127 up->reg_avail = bfregs * MLX5_NON_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR; in alloc_uars_page()
199 return dbi / MLX5_BFREGS_PER_UAR * MLX5_ADAPTER_PAGE_SIZE + in map_offset()
200 (dbi % MLX5_BFREGS_PER_UAR) * in map_offset()
251 bfreg->index = up->index + dbi / MLX5_BFREGS_PER_UAR; in alloc_bfreg()
286 return uar_idx * MLX5_BFREGS_PER_UAR + bfreg_idx; in addr_to_dbi_in_syspage()
310 fp = (dbi % MLX5_BFREGS_PER_UAR) >= MLX5_NON_FP_BFREGS_PER_UAR; in mlx5_free_bfreg()
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddevice.h250 MLX5_BFREGS_PER_UAR = 4, enumerator
253 MLX5_FP_BFREGS_PER_UAR = MLX5_BFREGS_PER_UAR -
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dqp.c886 return bfregn / MLX5_NON_FP_BFREGS_PER_UAR * MLX5_BFREGS_PER_UAR + in adjust_bfregn()