/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_qp.c | 52 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_event() local 55 spin_lock(&qp_table->lock); in mlx4_qp_event() 61 spin_unlock(&qp_table->lock); in mlx4_qp_event() 227 struct mlx4_qp_table *qp_table = &priv->qp_table; in __mlx4_qp_reserve_range() local 240 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, in __mlx4_qp_reserve_range() 278 struct mlx4_qp_table *qp_table = &priv->qp_table; in __mlx4_qp_release_range() local 282 mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); in __mlx4_qp_release_range() 308 struct mlx4_qp_table *qp_table = &priv->qp_table; in __mlx4_qp_alloc_icm() local 311 err = mlx4_table_get(dev, &qp_table->qp_table, qpn, gfp); in __mlx4_qp_alloc_icm() 315 err = mlx4_table_get(dev, &qp_table->auxc_table, qpn, gfp); in __mlx4_qp_alloc_icm() [all …]
|
H A D | mlx4_profile.c | 169 for (priv->qp_table.rdmarc_shift = 0; in mlx4_make_profile() 170 request->num_qp << priv->qp_table.rdmarc_shift < profile[i].num; in mlx4_make_profile() 171 ++priv->qp_table.rdmarc_shift) in mlx4_make_profile() 173 dev->caps.max_qp_dest_rdma = 1 << priv->qp_table.rdmarc_shift; in mlx4_make_profile() 174 priv->qp_table.rdmarc_base = (u32) profile[i].start; in mlx4_make_profile() 176 init_hca->log_rd_per_qp = priv->qp_table.rdmarc_shift; in mlx4_make_profile()
|
H A D | mlx4_main.c | 1511 err = mlx4_init_icm_table(dev, &priv->qp_table.cmpt_table, in mlx4_init_cmpt_table() 1557 mlx4_cleanup_icm_table(dev, &priv->qp_table.cmpt_table); in mlx4_init_cmpt_table() 1641 err = mlx4_init_icm_table(dev, &priv->qp_table.qp_table, in mlx4_init_icm() 1652 err = mlx4_init_icm_table(dev, &priv->qp_table.auxc_table, in mlx4_init_icm() 1663 err = mlx4_init_icm_table(dev, &priv->qp_table.altc_table, in mlx4_init_icm() 1674 err = mlx4_init_icm_table(dev, &priv->qp_table.rdmarc_table, in mlx4_init_icm() 1676 dev_cap->rdmarc_entry_sz << priv->qp_table.rdmarc_shift, in mlx4_init_icm() 1732 mlx4_cleanup_icm_table(dev, &priv->qp_table.rdmarc_table); in mlx4_init_icm() 1735 mlx4_cleanup_icm_table(dev, &priv->qp_table.altc_table); in mlx4_init_icm() 1738 mlx4_cleanup_icm_table(dev, &priv->qp_table.auxc_table); in mlx4_init_icm() [all …]
|
H A D | mlx4.h | 713 struct mlx4_icm_table qp_table; member 882 struct mlx4_qp_table qp_table; member
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_qp.c | 198 return qp->qpn >= dev->qp_table.sqp_start && in is_sqp() 199 qp->qpn <= dev->qp_table.sqp_start + 3; in is_sqp() 204 return qp->qpn >= dev->qp_table.sqp_start && in is_qp0() 205 qp->qpn <= dev->qp_table.sqp_start + 1; in is_qp0() 244 spin_lock(&dev->qp_table.lock); in mthca_qp_event() 245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event() 248 spin_unlock(&dev->qp_table.lock); in mthca_qp_event() 265 spin_lock(&dev->qp_table.lock); in mthca_qp_event() 268 spin_unlock(&dev->qp_table.lock); in mthca_qp_event() 758 cpu_to_be32(dev->qp_table.rdb_base + in __mthca_modify_qp() [all …]
|
H A D | mthca_main.c | 444 mdev->qp_table.qp_table = mthca_alloc_icm_table(mdev, init_hca->qpc_base, in mthca_init_icm() 449 if (!mdev->qp_table.qp_table) { in mthca_init_icm() 455 mdev->qp_table.eqp_table = mthca_alloc_icm_table(mdev, init_hca->eqpc_base, in mthca_init_icm() 460 if (!mdev->qp_table.eqp_table) { in mthca_init_icm() 466 mdev->qp_table.rdb_table = mthca_alloc_icm_table(mdev, init_hca->rdb_base, in mthca_init_icm() 469 mdev->qp_table.rdb_shift, 0, in mthca_init_icm() 471 if (!mdev->qp_table.rdb_table) { in mthca_init_icm() 531 mthca_free_icm_table(mdev, mdev->qp_table.rdb_table); in mthca_init_icm() 534 mthca_free_icm_table(mdev, mdev->qp_table.eqp_table); in mthca_init_icm() 537 mthca_free_icm_table(mdev, mdev->qp_table.qp_table); in mthca_init_icm() [all …]
|
H A D | mthca_profile.c | 206 for (dev->qp_table.rdb_shift = 0; in mthca_make_profile() 207 request->num_qp << dev->qp_table.rdb_shift < profile[i].num; in mthca_make_profile() 208 ++dev->qp_table.rdb_shift) in mthca_make_profile() 210 dev->qp_table.rdb_base = (u32) profile[i].start; in mthca_make_profile()
|
H A D | mthca_dev.h | 262 struct mthca_icm_table *qp_table; member 347 struct mthca_qp_table qp_table; member
|
H A D | mthca_cq.c | 525 *cur_qp = mthca_array_get(&dev->qp_table.qp, in mthca_poll_one()
|
H A D | mthca_provider.c | 105 props->max_qp_rd_atom = 1 << mdev->qp_table.rdb_shift; in mthca_query_device()
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | qp.c | 746 if (ctx->qp_table[tind].refcnt) in mlx4_find_qp() 747 return ctx->qp_table[tind].table[qpn & ctx->qp_table_mask]; in mlx4_find_qp() 756 if (!ctx->qp_table[tind].refcnt) { in mlx4_store_qp() 757 ctx->qp_table[tind].table = calloc(ctx->qp_table_mask + 1, in mlx4_store_qp() 759 if (!ctx->qp_table[tind].table) in mlx4_store_qp() 763 ++ctx->qp_table[tind].refcnt; in mlx4_store_qp() 764 ctx->qp_table[tind].table[qpn & ctx->qp_table_mask] = qp; in mlx4_store_qp() 772 if (!--ctx->qp_table[tind].refcnt) in mlx4_clear_qp() 773 free(ctx->qp_table[tind].table); in mlx4_clear_qp() 775 ctx->qp_table[tind].table[qpn & ctx->qp_table_mask] = NULL; in mlx4_clear_qp()
|
H A D | mlx4.c | 193 context->qp_table[i].refcnt = 0; in mlx4_init_context()
|
H A D | mlx4.h | 137 } qp_table[MLX4_QP_TABLE_SIZE]; member
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_qp.c | 38 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_get_rsc() 87 struct mlx5_qp_table *table = &dev->priv.qp_table; in create_qprqsq_common() 108 struct mlx5_qp_table *table = &dev->priv.qp_table; in destroy_qprqsq_common() 310 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_init_qp_table() 363 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_core_create_dct() 421 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_core_destroy_dct()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | qp.c | 1232 if (ctx->qp_table[tind].refcnt) in mlx5_find_qp() 1233 return ctx->qp_table[tind].table[qpn & MLX5_QP_TABLE_MASK]; in mlx5_find_qp() 1242 if (!ctx->qp_table[tind].refcnt) { in mlx5_store_qp() 1243 ctx->qp_table[tind].table = calloc(MLX5_QP_TABLE_MASK + 1, in mlx5_store_qp() 1245 if (!ctx->qp_table[tind].table) in mlx5_store_qp() 1249 ++ctx->qp_table[tind].refcnt; in mlx5_store_qp() 1250 ctx->qp_table[tind].table[qpn & MLX5_QP_TABLE_MASK] = qp; in mlx5_store_qp() 1258 if (!--ctx->qp_table[tind].refcnt) in mlx5_clear_qp() 1259 free(ctx->qp_table[tind].table); in mlx5_clear_qp() 1261 ctx->qp_table[tind].table[qpn & MLX5_QP_TABLE_MASK] = NULL; in mlx5_clear_qp()
|
H A D | mlx5.h | 223 } qp_table[MLX5_QP_TABLE_SIZE]; member
|
H A D | mlx5.c | 860 context->qp_table[i].refcnt = 0; in mlx5_init_context()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | rdmavt_qp.h | 420 struct rvt_qp __rcu **qp_table; member
|
H A D | rdma_vt.h | 477 for (qp = rcu_dereference(rdi->qp_dev->qp_table[n]); qp; in rvt_lookup_qpn()
|
/freebsd/sys/dev/mlx5/ |
H A D | qp.h | 577 return radix_tree_lookup(&dev->priv.qp_table.tree, qpn);
|
H A D | driver.h | 605 struct mlx5_qp_table qp_table; member
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_main.h | 344 struct irdma_qp **qp_table; member
|
H A D | irdma_hw.c | 243 iwqp = rf->qp_table[info->qp_cq_id]; in irdma_process_aeq() 2096 rf->qp_table = (struct irdma_qp **) in irdma_set_hw_rsrc() 2098 rf->cq_table = (struct irdma_cq **)(&rf->qp_table[rf->max_qp]); in irdma_set_hw_rsrc()
|
H A D | irdma_utils.c | 692 iwdev->rf->qp_table[iwqp->ibqp.qp_num] = NULL; in irdma_qp_rem_ref() 742 return &iwdev->rf->qp_table[qpn]->ibqp; in irdma_get_qp()
|
H A D | irdma_kcompat.c | 825 rf->qp_table[qp_num] = iwqp; in irdma_create_qp()
|