Searched refs:bfregs (Results 1 – 3 of 3) sorted by relevance
101 int bfregs; in alloc_uars_page() local105 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 …]
1597 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()
393 unsigned int bfregs; member629 struct mlx5_bfreg_data bfregs; member