Home
last modified time | relevance | path

Searched refs:sqp (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c650 struct mlx4_ib_sqp *sqp; in create_qp_common() local
701 sqp = kzalloc(sizeof (struct mlx4_ib_sqp), gfp); in create_qp_common()
702 if (!sqp) in create_qp_common()
704 qp = &sqp->qp; in create_qp_common()
1261 struct mlx4_ib_sqp *sqp = to_msqp((to_mqp(ibqp))); in mlx4_ib_create_qp() local
1267 sqp->roce_v2_gsi = ib_create_qp(pd, init_attr); in mlx4_ib_create_qp()
1269 if (IS_ERR(sqp->roce_v2_gsi)) { in mlx4_ib_create_qp()
1270 pr_err("Failed to create GSI QP for RoCEv2 (%ld)\n", PTR_ERR(sqp->roce_v2_gsi)); in mlx4_ib_create_qp()
1271 sqp->roce_v2_gsi = NULL; in mlx4_ib_create_qp()
1273 sqp = to_msqp(to_mqp(sqp->roce_v2_gsi)); in mlx4_ib_create_qp()
[all …]
H A Dmlx4_ib_mad.c1332 struct mlx4_ib_demux_pv_qp *sqp; in mlx4_ib_send_to_wire() local
1349 sqp = &sqp_ctx->qp[0]; in mlx4_ib_send_to_wire()
1353 sqp = &sqp_ctx->qp[1]; in mlx4_ib_send_to_wire()
1357 send_qp = sqp->qp; in mlx4_ib_send_to_wire()
1373 spin_lock(&sqp->tx_lock); in mlx4_ib_send_to_wire()
1374 if (sqp->tx_ix_head - sqp->tx_ix_tail >= in mlx4_ib_send_to_wire()
1378 wire_tx_ix = (++sqp->tx_ix_head) & (MLX4_NUM_TUNNEL_BUFS - 1); in mlx4_ib_send_to_wire()
1379 spin_unlock(&sqp->tx_lock); in mlx4_ib_send_to_wire()
1383 sqp_mad = (struct mlx4_mad_snd_buf *) (sqp->tx_ring[wire_tx_ix].buf.addr); in mlx4_ib_send_to_wire()
1384 kfree(sqp->tx_ring[wire_tx_ix].ah); in mlx4_ib_send_to_wire()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_qp.c299 static void store_attrs(struct mthca_sqp *sqp, const struct ib_qp_attr *attr, in store_attrs() argument
303 sqp->pkey_index = attr->pkey_index; in store_attrs()
305 sqp->qkey = attr->qkey; in store_attrs()
307 sqp->send_psn = attr->sq_psn; in store_attrs()
1356 struct mthca_sqp *sqp, in mthca_alloc_sqp() argument
1362 sqp->qp.transport = MLX; in mthca_alloc_sqp()
1363 err = mthca_set_qp_size(dev, cap, pd, &sqp->qp); in mthca_alloc_sqp()
1367 sqp->header_buf_size = sqp->qp.sq.max * MTHCA_UD_HEADER_SIZE; in mthca_alloc_sqp()
1368 sqp->header_buf = dma_alloc_coherent(&dev->pdev->dev, sqp->header_buf_size, in mthca_alloc_sqp()
1369 &sqp->header_dma, GFP_KERNEL); in mthca_alloc_sqp()
[all …]
H A Dmthca_dev.h563 struct mthca_sqp *sqp,
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c2178 struct bnxt_re_qp *sqp; in bnxt_re_create_shadow_gsi() local
2190 sqp = bnxt_re_create_shadow_qp(pd, &rdev->qplib_res, &qp->qplib_qp); in bnxt_re_create_shadow_gsi()
2191 if (!sqp) { in bnxt_re_create_shadow_gsi()
2197 rdev->gsi_ctx.gsi_sqp = sqp; in bnxt_re_create_shadow_gsi()
2199 sqp->rcq = qp->rcq; in bnxt_re_create_shadow_gsi()
2200 sqp->scq = qp->scq; in bnxt_re_create_shadow_gsi()
2205 &sqp->qplib_qp); in bnxt_re_create_shadow_gsi()