Lines Matching refs:qp
164 ext_info->my_qpn = cpu_to_be32(in_wc->qp->qp_num); in mlx4_MAD_IFC()
207 new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah()
490 tun_qp = &tun_ctx->qp[0]; in mlx4_ib_send_to_slave()
492 tun_qp = &tun_ctx->qp[1]; in mlx4_ib_send_to_slave()
511 src_qp = tun_qp->qp; in mlx4_ib_send_to_slave()
646 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
717 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
732 if (in_wc && in_wc->qp->qp_num) { in ib_process_mad()
737 in_wc->qp->qp_num, in ib_process_mad()
1125 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf()
1139 return ib_post_recv(tun_qp->qp, &recv_wr, &bad_recv_wr); in mlx4_ib_post_pv_qp_buf()
1193 sqp = &sqp_ctx->qp[0]; in mlx4_ib_send_to_wire()
1197 sqp = &sqp_ctx->qp[1]; in mlx4_ib_send_to_wire()
1201 send_qp = sqp->qp; in mlx4_ib_send_to_wire()
1284 struct mlx4_ib_demux_pv_qp *tun_qp = &ctx->qp[MLX4_TUN_WRID_QPN(wc->wr_id)]; in mlx4_ib_multiplex_mad()
1401 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs()
1495 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs()
1532 tun_qp = &ctx->qp[MLX4_TUN_WRID_QPN(wc.wr_id)]; in mlx4_ib_tunnel_comp_worker()
1598 tun_qp = &ctx->qp[qp_type]; in create_pv_sqp()
1624 tun_qp->qp = ib_create_qp(ctx->pd, &qp_init_attr.init_attr); in create_pv_sqp()
1625 if (IS_ERR(tun_qp->qp)) { in create_pv_sqp()
1626 ret = PTR_ERR(tun_qp->qp); in create_pv_sqp()
1627 tun_qp->qp = NULL; in create_pv_sqp()
1645 ret = ib_modify_qp(tun_qp->qp, &attr, qp_attr_mask_INIT); in create_pv_sqp()
1652 ret = ib_modify_qp(tun_qp->qp, &attr, IB_QP_STATE); in create_pv_sqp()
1660 ret = ib_modify_qp(tun_qp->qp, &attr, IB_QP_STATE | IB_QP_SQ_PSN); in create_pv_sqp()
1678 ib_destroy_qp(tun_qp->qp); in create_pv_sqp()
1679 tun_qp->qp = NULL; in create_pv_sqp()
1698 sqp = &ctx->qp[MLX4_TUN_WRID_QPN(wc.wr_id)]; in mlx4_ib_sqp_comp_worker()
1859 ib_destroy_qp(ctx->qp[1].qp); in create_pv_resources()
1860 ctx->qp[1].qp = NULL; in create_pv_resources()
1865 ib_destroy_qp(ctx->qp[0].qp); in create_pv_resources()
1866 ctx->qp[0].qp = NULL; in create_pv_resources()
1901 ib_destroy_qp(ctx->qp[0].qp); in destroy_pv_resources()
1902 ctx->qp[0].qp = NULL; in destroy_pv_resources()
1905 ib_destroy_qp(ctx->qp[1].qp); in destroy_pv_resources()
1906 ctx->qp[1].qp = NULL; in destroy_pv_resources()
2035 ib_destroy_qp(sqp_ctx->qp[0].qp); in mlx4_ib_free_sqp_ctx()
2036 sqp_ctx->qp[0].qp = NULL; in mlx4_ib_free_sqp_ctx()
2039 ib_destroy_qp(sqp_ctx->qp[1].qp); in mlx4_ib_free_sqp_ctx()
2040 sqp_ctx->qp[1].qp = NULL; in mlx4_ib_free_sqp_ctx()