Lines Matching refs:qp
157 ext_info->my_qpn = cpu_to_be32(in_wc->qp->qp_num); in mlx4_MAD_IFC()
200 new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah()
485 tun_qp = &tun_ctx->qp[0]; in mlx4_ib_send_to_slave()
487 tun_qp = &tun_ctx->qp[1]; in mlx4_ib_send_to_slave()
506 src_qp = tun_qp->qp; in mlx4_ib_send_to_slave()
641 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
712 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
727 if (in_wc && in_wc->qp->qp_num) { in ib_process_mad()
732 in_wc->qp->qp_num, in ib_process_mad()
1143 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf()
1157 return ib_post_recv(tun_qp->qp, &recv_wr, &bad_recv_wr); in mlx4_ib_post_pv_qp_buf()
1212 sqp = &sqp_ctx->qp[0]; in mlx4_ib_send_to_wire()
1216 sqp = &sqp_ctx->qp[1]; in mlx4_ib_send_to_wire()
1220 send_qp = sqp->qp; in mlx4_ib_send_to_wire()
1306 struct mlx4_ib_demux_pv_qp *tun_qp = &ctx->qp[MLX4_TUN_WRID_QPN(wc->wr_id)]; in mlx4_ib_multiplex_mad()
1427 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs()
1521 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs()
1558 tun_qp = &ctx->qp[MLX4_TUN_WRID_QPN(wc.wr_id)]; in mlx4_ib_tunnel_comp_worker()
1624 tun_qp = &ctx->qp[qp_type]; in create_pv_sqp()
1650 tun_qp->qp = ib_create_qp(ctx->pd, &qp_init_attr.init_attr); in create_pv_sqp()
1651 if (IS_ERR(tun_qp->qp)) { in create_pv_sqp()
1652 ret = PTR_ERR(tun_qp->qp); in create_pv_sqp()
1653 tun_qp->qp = NULL; in create_pv_sqp()
1671 ret = ib_modify_qp(tun_qp->qp, &attr, qp_attr_mask_INIT); in create_pv_sqp()
1678 ret = ib_modify_qp(tun_qp->qp, &attr, IB_QP_STATE); in create_pv_sqp()
1686 ret = ib_modify_qp(tun_qp->qp, &attr, IB_QP_STATE | IB_QP_SQ_PSN); in create_pv_sqp()
1704 ib_destroy_qp(tun_qp->qp); in create_pv_sqp()
1705 tun_qp->qp = NULL; in create_pv_sqp()
1724 sqp = &ctx->qp[MLX4_TUN_WRID_QPN(wc.wr_id)]; in mlx4_ib_sqp_comp_worker()
1880 ib_destroy_qp(ctx->qp[1].qp); in create_pv_resources()
1881 ctx->qp[1].qp = NULL; in create_pv_resources()
1886 ib_destroy_qp(ctx->qp[0].qp); in create_pv_resources()
1887 ctx->qp[0].qp = NULL; in create_pv_resources()
1918 ib_destroy_qp(ctx->qp[0].qp); in destroy_pv_resources()
1919 ctx->qp[0].qp = NULL; in destroy_pv_resources()
1922 ib_destroy_qp(ctx->qp[1].qp); in destroy_pv_resources()
1923 ctx->qp[1].qp = NULL; in destroy_pv_resources()
2050 ib_destroy_qp(sqp_ctx->qp[0].qp); in mlx4_ib_free_sqp_ctx()
2051 sqp_ctx->qp[0].qp = NULL; in mlx4_ib_free_sqp_ctx()
2054 ib_destroy_qp(sqp_ctx->qp[1].qp); in mlx4_ib_free_sqp_ctx()
2055 sqp_ctx->qp[1].qp = NULL; in mlx4_ib_free_sqp_ctx()