Lines Matching refs:sqp_ctx
1366 struct mlx4_ib_demux_pv_ctx *sqp_ctx; in mlx4_ib_send_to_wire() local
1376 sqp_ctx = dev->sriov.sqps[port-1]; in mlx4_ib_send_to_wire()
1379 if (!sqp_ctx || sqp_ctx->state != DEMUX_PV_STATE_ACTIVE) in mlx4_ib_send_to_wire()
1384 sqp = &sqp_ctx->qp[0]; in mlx4_ib_send_to_wire()
1388 sqp = &sqp_ctx->qp[1]; in mlx4_ib_send_to_wire()
1395 ah = mlx4_ib_create_ah_slave(sqp_ctx->pd, attr, in mlx4_ib_send_to_wire()
1428 list.lkey = sqp_ctx->pd->local_dma_lkey; in mlx4_ib_send_to_wire()
2215 static void mlx4_ib_free_sqp_ctx(struct mlx4_ib_demux_pv_ctx *sqp_ctx) in mlx4_ib_free_sqp_ctx() argument
2217 if (sqp_ctx->state > DEMUX_PV_STATE_DOWN) { in mlx4_ib_free_sqp_ctx()
2218 sqp_ctx->state = DEMUX_PV_STATE_DOWNING; in mlx4_ib_free_sqp_ctx()
2219 flush_workqueue(sqp_ctx->wq); in mlx4_ib_free_sqp_ctx()
2220 if (sqp_ctx->has_smi) { in mlx4_ib_free_sqp_ctx()
2221 ib_destroy_qp(sqp_ctx->qp[0].qp); in mlx4_ib_free_sqp_ctx()
2222 sqp_ctx->qp[0].qp = NULL; in mlx4_ib_free_sqp_ctx()
2223 mlx4_ib_free_pv_qp_bufs(sqp_ctx, IB_QPT_SMI, 0); in mlx4_ib_free_sqp_ctx()
2225 ib_destroy_qp(sqp_ctx->qp[1].qp); in mlx4_ib_free_sqp_ctx()
2226 sqp_ctx->qp[1].qp = NULL; in mlx4_ib_free_sqp_ctx()
2227 mlx4_ib_free_pv_qp_bufs(sqp_ctx, IB_QPT_GSI, 0); in mlx4_ib_free_sqp_ctx()
2228 ib_dealloc_pd(sqp_ctx->pd); in mlx4_ib_free_sqp_ctx()
2229 sqp_ctx->pd = NULL; in mlx4_ib_free_sqp_ctx()
2230 ib_destroy_cq(sqp_ctx->cq); in mlx4_ib_free_sqp_ctx()
2231 sqp_ctx->cq = NULL; in mlx4_ib_free_sqp_ctx()
2232 sqp_ctx->state = DEMUX_PV_STATE_DOWN; in mlx4_ib_free_sqp_ctx()