Lines Matching refs:mqp

118 	return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn &&
119 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn +
130 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn &&
131 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3);
137 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy ||
138 qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp1_proxy) {
158 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn &&
159 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1);
165 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy) {
662 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS;
664 err = mlx4_qp_reserve_range(dev->dev, 1, 1, &qpn, 0, qp->mqp.usage);
668 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp);
702 mlx4_qp_remove(dev->dev, &qp->mqp);
703 mlx4_qp_free(dev->dev, &qp->mqp);
774 qp->ibqp.qp_num = qp->mqp.qpn;
804 qp->mqp.usage);
940 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS;
946 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp);
955 qp->doorbell_qpn = swab32(qp->mqp.qpn << 8);
957 qp->mqp.event = mlx4_ib_wq_event;
1125 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS;
1182 qp->mqp.usage = MLX4_RES_USAGE_DRIVER;
1203 qp->mqp.usage);
1209 &qpn, 0, qp->mqp.usage);
1217 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp);
1222 qp->mqp.qpn |= (1 << 23);
1229 qp->doorbell_qpn = swab32(qp->mqp.qpn << 8);
1231 qp->mqp.event = mlx4_ib_qp_event;
1389 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp))
1391 qp->mqp.qpn);
1394 mlx4_qp_remove(dev->dev, &qp->mqp);
1395 mlx4_qp_free(dev->dev, &qp->mqp);
1396 mlx4_qp_release_range(dev->dev, qp->mqp.qpn, 1);
1409 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp))
1411 qp->mqp.qpn);
1445 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn,
1448 __mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL);
1451 mlx4_qp_remove(dev->dev, &qp->mqp);
1456 mlx4_qp_free(dev->dev, &qp->mqp);
1460 mlx4_ib_steer_qp_free(dev, qp->mqp.qpn, 1);
1469 mlx4_qp_release_range(dev->dev, qp->mqp.qpn, 1);
1580 qp->ibqp.qp_num = qp->mqp.qpn;
1663 struct mlx4_ib_qp *mqp = to_mqp(qp);
1665 if (is_qp0(dev, mqp))
1666 mlx4_CLOSE_PORT(dev->dev, mqp->port);
1668 if (mqp->mlx4_ib_qp_type == MLX4_IB_QPT_PROXY_GSI &&
1669 dev->qp1_proxy[mqp->port - 1] == mqp) {
1670 mutex_lock(&dev->qp1_proxy_lock[mqp->port - 1]);
1671 dev->qp1_proxy[mqp->port - 1] = NULL;
1672 mutex_unlock(&dev->qp1_proxy_lock[mqp->port - 1]);
1675 if (mqp->counter_index)
1676 mlx4_ib_free_qp_counter(dev, mqp);
1679 destroy_qp_rss(dev, mqp);
1681 destroy_qp_common(dev, mqp, MLX4_IB_QP_SRC, udata);
1684 kfree(mqp->sqp);
1690 struct mlx4_ib_qp *mqp = to_mqp(qp);
1692 if (mqp->mlx4_ib_qp_type == MLX4_IB_QPT_GSI) {
1693 struct mlx4_ib_sqp *sqp = mqp->sqp;
1892 struct mlx4_ib_qp *mqp,
1899 path, &mqp->pri, port);
1905 struct mlx4_ib_qp *mqp,
1911 path, &mqp->alt, port);
2537 sqd_event, &qp->mqp);
2578 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn,
2581 mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL);
2826 struct mlx4_ib_qp *mqp = to_mqp(ibqp);
2834 if (mqp->mlx4_ib_qp_type == MLX4_IB_QPT_GSI) {
2835 struct mlx4_ib_sqp *sqp = mqp->sqp;
2922 if (mlx4_get_parav_qkey(mdev->dev, qp->mqp.qpn, &qkey))
2925 if (vf_get_qp0_qkey(mdev->dev, qp->mqp.qpn, &qkey))
2929 sqp->ud_header.deth.source_qpn = cpu_to_be32(qp->mqp.qpn);
4029 err = mlx4_qp_query(dev->dev, &qp->mqp, &context);
4186 qp->ibwq.wq_num = qp->mqp.qpn;