• Home
  • Raw
  • Download

Lines Matching refs:mqp

110 static struct mlx4_ib_sqp *to_msqp(struct mlx4_ib_qp *mqp)  in to_msqp()  argument
112 return container_of(mqp, struct mlx4_ib_sqp, qp); in to_msqp()
120 return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn && in is_tunnel_qp()
121 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn + in is_tunnel_qp()
132 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_sqp()
133 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3); in is_sqp()
139 if (qp->mqp.qpn == dev->dev->caps.qp0_proxy[i] || in is_sqp()
140 qp->mqp.qpn == dev->dev->caps.qp1_proxy[i]) { in is_sqp()
157 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_qp0()
158 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1); in is_qp0()
164 if (qp->mqp.qpn == dev->dev->caps.qp0_proxy[i]) { in is_qp0()
773 err = mlx4_qp_alloc(dev->dev, qpn, &qp->mqp); in create_qp_common()
778 qp->mqp.qpn |= (1 << 23); in create_qp_common()
785 qp->doorbell_qpn = swab32(qp->mqp.qpn << 8); in create_qp_common()
787 qp->mqp.event = mlx4_ib_qp_event; in create_qp_common()
914 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp)) in destroy_qp_common()
916 qp->mqp.qpn); in destroy_qp_common()
923 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in destroy_qp_common()
926 __mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL); in destroy_qp_common()
929 mlx4_qp_remove(dev->dev, &qp->mqp); in destroy_qp_common()
933 mlx4_qp_free(dev->dev, &qp->mqp); in destroy_qp_common()
936 mlx4_qp_release_range(dev->dev, qp->mqp.qpn, 1); in destroy_qp_common()
1026 qp->ibqp.qp_num = qp->mqp.qpn; in mlx4_ib_create_qp()
1060 struct mlx4_ib_qp *mqp = to_mqp(qp); in mlx4_ib_destroy_qp() local
1063 if (is_qp0(dev, mqp)) in mlx4_ib_destroy_qp()
1064 mlx4_CLOSE_PORT(dev->dev, mqp->port); in mlx4_ib_destroy_qp()
1066 pd = get_pd(mqp); in mlx4_ib_destroy_qp()
1067 destroy_qp_common(dev, mqp, !!pd->ibpd.uobject); in mlx4_ib_destroy_qp()
1069 if (is_sqp(dev, mqp)) in mlx4_ib_destroy_qp()
1070 kfree(to_msqp(mqp)); in mlx4_ib_destroy_qp()
1072 kfree(mqp); in mlx4_ib_destroy_qp()
1498 sqd_event, &qp->mqp); in __mlx4_ib_modify_qp()
1538 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in __mlx4_ib_modify_qp()
1541 mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL); in __mlx4_ib_modify_qp()
1691 if (mlx4_get_parav_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) in build_sriov_qp0_header()
1694 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.mqp.qpn); in build_sriov_qp0_header()
2690 err = mlx4_qp_query(dev->dev, &qp->mqp, &context); in mlx4_ib_query_qp()