Searched refs:uar_table (Results 1 – 11 of 11) sorted by relevance
40 uar->index = mthca_alloc(&dev->uar_table.alloc); in mthca_uar_alloc()51 mthca_free(&dev->uar_table.alloc, uar->index); in mthca_uar_free()58 ret = mthca_alloc_init(&dev->uar_table.alloc, in mthca_init_uar_table()67 mthca_alloc_cleanup(&dev->uar_table.alloc); in mthca_init_uar_table()77 mthca_alloc_cleanup(&dev->uar_table.alloc); in mthca_cleanup_uar_table()
441 return dev->uar_table.uarc_base + in mthca_uarc_virt()442 uar->index * dev->uar_table.uarc_size + in mthca_uarc_virt()456 if (index < 0 || index > dev->uar_table.uarc_size / 8) in mthca_map_user_db()532 npages = dev->uar_table.uarc_size / MTHCA_ICM_PAGE_SIZE; in mthca_init_user_db_tab()555 for (i = 0; i < dev->uar_table.uarc_size / MTHCA_ICM_PAGE_SIZE; ++i) { in mthca_cleanup_user_db_tab()713 dev->db_tab->npages = dev->uar_table.uarc_size / MTHCA_ICM_PAGE_SIZE; in mthca_init_db_tab()
242 dev->uar_table.uarc_size = request->uarc_size; in mthca_make_profile()243 dev->uar_table.uarc_base = profile[i].start; in mthca_make_profile()
338 struct mthca_uar_table uar_table; member
307 uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; in mthca_alloc_ucontext()
56 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_table_init()78 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_table_cleanup()89 tbl = &dev->uar_table.tbl; in pvrdma_uar_alloc()117 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_free()
234 struct pvrdma_uar_table uar_table; member
98 ret = hns_roce_bitmap_alloc(&hr_dev->uar_table.bitmap, &uar->logic_idx); in hns_roce_uar_alloc()125 hns_roce_bitmap_free(&hr_dev->uar_table.bitmap, uar->logic_idx, in hns_roce_uar_free()131 return hns_roce_bitmap_init(&hr_dev->uar_table.bitmap, in hns_roce_init_uar_table()139 hns_roce_bitmap_cleanup(&hr_dev->uar_table.bitmap); in hns_roce_cleanup_uar_table()
994 struct hns_roce_uar_table uar_table; member
149 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_uar_alloc()168 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index, MLX4_USE_RR); in mlx4_uar_free()186 if (mlx4_bitmap_avail(&priv->uar_table.bitmap) < MLX4_NUM_RESERVED_UARS) { in mlx4_bf_alloc()287 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap, in mlx4_init_uar_table()294 mlx4_bitmap_cleanup(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_cleanup_uar_table()
893 struct mlx4_uar_table uar_table; member