Lines Matching refs:qpn

131 	return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn &&  in is_tunnel_qp()
132 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn + in is_tunnel_qp()
143 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_sqp()
144 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3); in is_sqp()
150 if (qp->mqp.qpn == dev->dev->caps.qp0_proxy[i] || in is_sqp()
151 qp->mqp.qpn == dev->dev->caps.qp1_proxy[i]) { in is_sqp()
168 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_qp0()
169 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1); in is_qp0()
175 if (qp->mqp.qpn == dev->dev->caps.qp0_proxy[i]) { in is_qp0()
324 "on QP %06x\n", type, qp->qpn); in mlx4_ib_qp_event()
611 static int qp0_enabled_vf(struct mlx4_dev *dev, int qpn) in qp0_enabled_vf() argument
615 if (qpn == dev->caps.qp0_proxy[i]) in qp0_enabled_vf()
638 int qpn; in create_qp_common() local
661 qpn = sqpn; in create_qp_common()
682 qpn = dev->dev->phys_caps.base_tunnel_sqpn + 8 * tnl_init->slave in create_qp_common()
684 sqpn = qpn; in create_qp_common()
826 err = mlx4_qp_reserve_range(dev->dev, 1, 1, &qpn, in create_qp_common()
833 err = mlx4_ib_steer_qp_alloc(dev, 1, &qpn); in create_qp_common()
836 &qpn, 0); in create_qp_common()
844 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp, gfp); in create_qp_common()
849 qp->mqp.qpn |= (1 << 23); in create_qp_common()
856 qp->doorbell_qpn = swab32(qp->mqp.qpn << 8); in create_qp_common()
884 mlx4_ib_steer_qp_free(dev, qpn, 1); in create_qp_common()
886 mlx4_qp_release_range(dev->dev, qpn, 1); in create_qp_common()
1010 qp->mqp.qpn); in destroy_qp_common()
1044 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in destroy_qp_common()
1047 __mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL); in destroy_qp_common()
1059 mlx4_ib_steer_qp_free(dev, qp->mqp.qpn, 1); in destroy_qp_common()
1061 mlx4_qp_release_range(dev->dev, qp->mqp.qpn, 1); in destroy_qp_common()
1168 qp->ibqp.qp_num = qp->mqp.qpn; in mlx4_ib_create_qp()
1913 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in __mlx4_ib_modify_qp()
1916 mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL); in __mlx4_ib_modify_qp()
2129 static int vf_get_qp0_qkey(struct mlx4_dev *dev, int qpn, u32 *qkey) in vf_get_qp0_qkey() argument
2133 if (qpn == dev->caps.qp0_proxy[i] || in vf_get_qp0_qkey()
2134 qpn == dev->caps.qp0_tunnel[i]) { in vf_get_qp0_qkey()
2200 if (mlx4_get_parav_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) in build_sriov_qp0_header()
2203 if (vf_get_qp0_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) in build_sriov_qp0_header()
2207 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.mqp.qpn); in build_sriov_qp0_header()