Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c104 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()
/Linux-v6.6/include/linux/mlx5/
Ddevice.h251 MLX5_BFREGS_PER_UAR = 4, enumerator
254 MLX5_FP_BFREGS_PER_UAR = MLX5_BFREGS_PER_UAR -
/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dqp.c937 return bfregn / MLX5_NON_FP_BFREGS_PER_UAR * MLX5_BFREGS_PER_UAR + in adjust_bfregn()