Lines Matching refs:mqp

110 	return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn &&
111 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn +
122 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn &&
123 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3);
129 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy ||
130 qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp1_proxy) {
150 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn &&
151 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1);
157 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy) {
627 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS;
629 err = mlx4_qp_reserve_range(dev->dev, 1, 1, &qpn, 0, qp->mqp.usage);
633 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp);
667 mlx4_qp_remove(dev->dev, &qp->mqp);
668 mlx4_qp_free(dev->dev, &qp->mqp);
739 qp->ibqp.qp_num = qp->mqp.qpn;
769 qp->mqp.usage);
905 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS;
911 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp);
920 qp->doorbell_qpn = swab32(qp->mqp.qpn << 8);
922 qp->mqp.event = mlx4_ib_wq_event;
1090 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS;
1147 qp->mqp.usage = MLX4_RES_USAGE_DRIVER;
1168 qp->mqp.usage);
1174 &qpn, 0, qp->mqp.usage);
1182 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp);
1187 qp->mqp.qpn |= (1 << 23);
1194 qp->doorbell_qpn = swab32(qp->mqp.qpn << 8);
1196 qp->mqp.event = mlx4_ib_qp_event;
1354 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp))
1356 qp->mqp.qpn);
1359 mlx4_qp_remove(dev->dev, &qp->mqp);
1360 mlx4_qp_free(dev->dev, &qp->mqp);
1361 mlx4_qp_release_range(dev->dev, qp->mqp.qpn, 1);
1374 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp))
1376 qp->mqp.qpn);
1410 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn,
1413 __mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL);
1416 mlx4_qp_remove(dev->dev, &qp->mqp);
1421 mlx4_qp_free(dev->dev, &qp->mqp);
1425 mlx4_ib_steer_qp_free(dev, qp->mqp.qpn, 1);
1434 mlx4_qp_release_range(dev->dev, qp->mqp.qpn, 1);
1545 qp->ibqp.qp_num = qp->mqp.qpn;
1628 struct mlx4_ib_qp *mqp = to_mqp(qp);
1630 if (is_qp0(dev, mqp))
1631 mlx4_CLOSE_PORT(dev->dev, mqp->port);
1633 if (mqp->mlx4_ib_qp_type == MLX4_IB_QPT_PROXY_GSI &&
1634 dev->qp1_proxy[mqp->port - 1] == mqp) {
1635 mutex_lock(&dev->qp1_proxy_lock[mqp->port - 1]);
1636 dev->qp1_proxy[mqp->port - 1] = NULL;
1637 mutex_unlock(&dev->qp1_proxy_lock[mqp->port - 1]);
1640 if (mqp->counter_index)
1641 mlx4_ib_free_qp_counter(dev, mqp);
1644 destroy_qp_rss(dev, mqp);
1646 destroy_qp_common(dev, mqp, MLX4_IB_QP_SRC, udata);
1649 kfree(mqp->sqp);
1650 kfree(mqp);
1657 struct mlx4_ib_qp *mqp = to_mqp(qp);
1659 if (mqp->mlx4_ib_qp_type == MLX4_IB_QPT_GSI) {
1660 struct mlx4_ib_sqp *sqp = mqp->sqp;
1859 struct mlx4_ib_qp *mqp,
1866 path, &mqp->pri, port);
1872 struct mlx4_ib_qp *mqp,
1878 path, &mqp->alt, port);
2504 sqd_event, &qp->mqp);
2545 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn,
2548 mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL);
2793 struct mlx4_ib_qp *mqp = to_mqp(ibqp);
2798 if (mqp->mlx4_ib_qp_type == MLX4_IB_QPT_GSI) {
2799 struct mlx4_ib_sqp *sqp = mqp->sqp;
2886 if (mlx4_get_parav_qkey(mdev->dev, qp->mqp.qpn, &qkey))
2889 if (vf_get_qp0_qkey(mdev->dev, qp->mqp.qpn, &qkey))
2893 sqp->ud_header.deth.source_qpn = cpu_to_be32(qp->mqp.qpn);
3996 err = mlx4_qp_query(dev->dev, &qp->mqp, &context);
4151 qp->ibwq.wq_num = qp->mqp.qpn;