Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c101 int bfregs; in alloc_uars_page() local
105 bfregs = uars_per_sys_page(mdev) * MLX5_BFREGS_PER_UAR; in alloc_uars_page()
112 up->reg_bitmap = bitmap_zalloc_node(bfregs, GFP_KERNEL, node); in alloc_uars_page()
116 up->fp_bitmap = bitmap_zalloc_node(bfregs, GFP_KERNEL, node); in alloc_uars_page()
120 for (i = 0; i < bfregs; i++) in alloc_uars_page()
126 up->bfregs = bfregs; in alloc_uars_page()
127 up->fp_avail = bfregs * MLX5_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR; in alloc_uars_page()
128 up->reg_avail = bfregs * MLX5_NON_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR; in alloc_uars_page()
152 up->index, up->bfregs); in alloc_uars_page()
169 mutex_lock(&mdev->priv.bfregs.reg_head.lock); in mlx5_get_uars_page()
[all …]
Dmain.c1597 mutex_init(&priv->bfregs.reg_head.lock); in mlx5_mdev_init()
1598 mutex_init(&priv->bfregs.wc_head.lock); in mlx5_mdev_init()
1599 INIT_LIST_HEAD(&priv->bfregs.reg_head.list); in mlx5_mdev_init()
1600 INIT_LIST_HEAD(&priv->bfregs.wc_head.list); in mlx5_mdev_init()
1659 mutex_destroy(&priv->bfregs.wc_head.lock); in mlx5_mdev_init()
1660 mutex_destroy(&priv->bfregs.reg_head.lock); in mlx5_mdev_init()
1681 mutex_destroy(&priv->bfregs.wc_head.lock); in mlx5_mdev_uninit()
1682 mutex_destroy(&priv->bfregs.reg_head.lock); in mlx5_mdev_uninit()
/linux-6.1.9/include/linux/mlx5/
Ddriver.h393 unsigned int bfregs; member
629 struct mlx5_bfreg_data bfregs; member