Lines Matching refs:recv_cq
50 struct mlx4_ib_cq *recv_cq);
52 struct mlx4_ib_cq *recv_cq);
845 to_mcq(init_attr->recv_cq)); in create_qp_common()
855 mcq = to_mcq(init_attr->recv_cq); in create_qp_common()
858 to_mcq(init_attr->recv_cq)); in create_qp_common()
914 static void mlx4_ib_lock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_lock_cqs() argument
915 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mlx4_ib_lock_cqs()
917 if (send_cq == recv_cq) { in mlx4_ib_lock_cqs()
919 __acquire(&recv_cq->lock); in mlx4_ib_lock_cqs()
920 } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx4_ib_lock_cqs()
922 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mlx4_ib_lock_cqs()
924 spin_lock(&recv_cq->lock); in mlx4_ib_lock_cqs()
929 static void mlx4_ib_unlock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_unlock_cqs() argument
930 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mlx4_ib_unlock_cqs()
932 if (send_cq == recv_cq) { in mlx4_ib_unlock_cqs()
933 __release(&recv_cq->lock); in mlx4_ib_unlock_cqs()
935 } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx4_ib_unlock_cqs()
936 spin_unlock(&recv_cq->lock); in mlx4_ib_unlock_cqs()
940 spin_unlock(&recv_cq->lock); in mlx4_ib_unlock_cqs()
963 struct mlx4_ib_cq **send_cq, struct mlx4_ib_cq **recv_cq) in get_cqs() argument
968 *recv_cq = *send_cq; in get_cqs()
972 *recv_cq = *send_cq; in get_cqs()
976 *recv_cq = to_mcq(qp->ibqp.recv_cq); in get_cqs()
984 struct mlx4_ib_cq *send_cq, *recv_cq; in destroy_qp_common() local
1015 get_cqs(qp, &send_cq, &recv_cq); in destroy_qp_common()
1018 mlx4_ib_lock_cqs(send_cq, recv_cq); in destroy_qp_common()
1025 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in destroy_qp_common()
1027 if (send_cq != recv_cq) in destroy_qp_common()
1033 mlx4_ib_unlock_cqs(send_cq, recv_cq); in destroy_qp_common()
1128 init_attr->recv_cq = init_attr->send_cq; in mlx4_ib_create_qp()
1453 struct mlx4_ib_cq *send_cq, *recv_cq; in __mlx4_ib_modify_qp() local
1597 get_cqs(qp, &send_cq, &recv_cq); in __mlx4_ib_modify_qp()
1600 context->cqn_recv = cpu_to_be32(recv_cq->mcq.cqn); in __mlx4_ib_modify_qp()
1806 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in __mlx4_ib_modify_qp()
1808 if (send_cq != recv_cq) in __mlx4_ib_modify_qp()
2979 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx4_ib_post_recv()