Home
last modified time | relevance | path

Searched refs:uar_table (Results 1 – 9 of 9) sorted by relevance

/NextBSD/sys/ofed/drivers/infiniband/hw/mthca/
HDmthca_uar.c40 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()
HDmthca_memfree.c446 return dev->uar_table.uarc_base + in mthca_uarc_virt()
447 uar->index * dev->uar_table.uarc_size + in mthca_uarc_virt()
471 if (index < 0 || index > dev->uar_table.uarc_size / 8) in mthca_map_user_db()
533 if (index < 0 || index > dev->uar_table.uarc_size / 8) in mthca_map_user_db()
638 npages = dev->uar_table.uarc_size / MTHCA_ICM_PAGE_SIZE; in mthca_init_user_db_tab()
662 for (i = 0; i < dev->uar_table.uarc_size / MTHCA_ICM_PAGE_SIZE; ++i) { in mthca_cleanup_user_db_tab()
833 dev->db_tab->npages = dev->uar_table.uarc_size / MTHCA_ICM_PAGE_SIZE; in mthca_init_db_tab()
HDmthca_profile.c246 dev->uar_table.uarc_size = request->uarc_size; in mthca_make_profile()
247 dev->uar_table.uarc_base = profile[i].start; in mthca_make_profile()
HDmthca_dev.h339 struct mthca_uar_table uar_table; member
HDmthca_provider.c345 uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; in mthca_alloc_ucontext()
/NextBSD/sys/dev/ifmlx4/
HDpd.c149 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_uar_alloc()
166 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index, MLX4_USE_RR); in mlx4_uar_free()
185 if (mlx4_bitmap_avail(&priv->uar_table.bitmap) < MLX4_NUM_RESERVED_UARS) { in mlx4_bf_alloc()
294 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap, in mlx4_init_uar_table()
301 mlx4_bitmap_cleanup(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_cleanup_uar_table()
HDmlx4.h832 struct mlx4_uar_table uar_table; member
/NextBSD/sys/ofed/drivers/net/mlx4/
HDpd.c149 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_uar_alloc()
166 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index, MLX4_USE_RR); in mlx4_uar_free()
185 if (mlx4_bitmap_avail(&priv->uar_table.bitmap) < MLX4_NUM_RESERVED_UARS) { in mlx4_bf_alloc()
294 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap, in mlx4_init_uar_table()
301 mlx4_bitmap_cleanup(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_cleanup_uar_table()
HDmlx4.h839 struct mlx4_uar_table uar_table; member