Lines Matching refs:sys_pages
1656 err = mlx5_cmd_uar_alloc(dev->mdev, &bfregi->sys_pages[i], in allocate_uars()
1661 mlx5_ib_dbg(dev, "allocated uar %d\n", bfregi->sys_pages[i]); in allocate_uars()
1665 bfregi->sys_pages[i] = MLX5_IB_INVALID_UAR_INDEX; in allocate_uars()
1671 if (mlx5_cmd_uar_dealloc(dev->mdev, bfregi->sys_pages[i], in allocate_uars()
1687 bfregi->sys_pages[i] != MLX5_IB_INVALID_UAR_INDEX) in deallocate_uars()
1688 mlx5_cmd_uar_dealloc(dev->mdev, bfregi->sys_pages[i], in deallocate_uars()
1919 bfregi->sys_pages = kcalloc(bfregi->num_sys_pages, in mlx5_ib_alloc_ucontext()
1920 sizeof(*bfregi->sys_pages), in mlx5_ib_alloc_ucontext()
1922 if (!bfregi->sys_pages) { in mlx5_ib_alloc_ucontext()
1975 kfree(bfregi->sys_pages); in mlx5_ib_alloc_ucontext()
2021 kfree(bfregi->sys_pages); in mlx5_ib_dealloc_ucontext()
2219 uar_index = bfregi->sys_pages[idx]; in uar_mmap()
2235 bfregi->sys_pages[idx] = uar_index; in uar_mmap()