Lines Matching refs:sqp
1363 struct mlx4_ib_demux_pv_qp *sqp;
1380 sqp = &sqp_ctx->qp[0];
1384 sqp = &sqp_ctx->qp[1];
1388 send_qp = sqp->qp;
1404 spin_lock(&sqp->tx_lock);
1405 if (sqp->tx_ix_head - sqp->tx_ix_tail >=
1409 wire_tx_ix = (++sqp->tx_ix_head) & (MLX4_NUM_WIRE_BUFS - 1);
1410 spin_unlock(&sqp->tx_lock);
1414 sqp_mad = (struct mlx4_mad_snd_buf *) (sqp->tx_ring[wire_tx_ix].buf.addr);
1415 kfree(sqp->tx_ring[wire_tx_ix].ah);
1416 sqp->tx_ring[wire_tx_ix].ah = ah;
1418 sqp->tx_ring[wire_tx_ix].buf.map,
1425 sqp->tx_ring[wire_tx_ix].buf.map,
1429 list.addr = sqp->tx_ring[wire_tx_ix].buf.map;
1449 spin_lock(&sqp->tx_lock);
1450 sqp->tx_ix_tail++;
1451 spin_unlock(&sqp->tx_lock);
1452 sqp->tx_ring[wire_tx_ix].ah = NULL;
1496 mlx4_ib_warn(ctx->ib_dev, "can't multiplex bad sqp:%d\n", wc->src_qp);
1501 mlx4_ib_warn(ctx->ib_dev, "can't multiplex bad sqp:%d: "
1787 struct mlx4_ib_demux_pv_ctx *sqp = qp_context;
1791 event->event, sqp->port);
1898 struct mlx4_ib_demux_pv_qp *sqp;
1907 sqp = &ctx->qp[MLX4_TUN_WRID_QPN(wc.wr_id)];
1911 kfree(sqp->tx_ring[wc.wr_id &
1913 sqp->tx_ring[wc.wr_id & (MLX4_NUM_WIRE_BUFS - 1)].ah
1915 spin_lock(&sqp->tx_lock);
1916 sqp->tx_ix_tail++;
1917 spin_unlock(&sqp->tx_lock);
1921 (sqp->ring[wc.wr_id &
1924 (sqp->ring[wc.wr_id &
1927 if (mlx4_ib_post_pv_qp_buf(ctx, sqp, wc.wr_id &
1940 kfree(sqp->tx_ring[wc.wr_id &
1942 sqp->tx_ring[wc.wr_id & (MLX4_NUM_WIRE_BUFS - 1)].ah
1944 spin_lock(&sqp->tx_lock);
1945 sqp->tx_ix_tail++;
1946 spin_unlock(&sqp->tx_lock);
2122 /* for master, destroy real sqp resources */
2136 /* for master, create the real sqp resources */