Lines Matching refs:recv_cq

51 			     struct mlx4_ib_cq *recv_cq);
53 struct mlx4_ib_cq *recv_cq);
864 to_mcq(init_attr->recv_cq)); in create_qp_common()
874 mcq = to_mcq(init_attr->recv_cq); in create_qp_common()
877 to_mcq(init_attr->recv_cq)); in create_qp_common()
933 static void mlx4_ib_lock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_lock_cqs() argument
934 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mlx4_ib_lock_cqs()
936 if (send_cq == recv_cq) { in mlx4_ib_lock_cqs()
938 __acquire(&recv_cq->lock); in mlx4_ib_lock_cqs()
939 } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx4_ib_lock_cqs()
941 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mlx4_ib_lock_cqs()
943 spin_lock(&recv_cq->lock); in mlx4_ib_lock_cqs()
948 static void mlx4_ib_unlock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_unlock_cqs() argument
949 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mlx4_ib_unlock_cqs()
951 if (send_cq == recv_cq) { in mlx4_ib_unlock_cqs()
952 __release(&recv_cq->lock); in mlx4_ib_unlock_cqs()
954 } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx4_ib_unlock_cqs()
955 spin_unlock(&recv_cq->lock); in mlx4_ib_unlock_cqs()
959 spin_unlock(&recv_cq->lock); in mlx4_ib_unlock_cqs()
982 struct mlx4_ib_cq **send_cq, struct mlx4_ib_cq **recv_cq) in get_cqs() argument
987 *recv_cq = *send_cq; in get_cqs()
991 *recv_cq = *send_cq; in get_cqs()
995 *recv_cq = to_mcq(qp->ibqp.recv_cq); in get_cqs()
1003 struct mlx4_ib_cq *send_cq, *recv_cq; in destroy_qp_common() local
1034 get_cqs(qp, &send_cq, &recv_cq); in destroy_qp_common()
1037 mlx4_ib_lock_cqs(send_cq, recv_cq); in destroy_qp_common()
1044 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in destroy_qp_common()
1046 if (send_cq != recv_cq) in destroy_qp_common()
1052 mlx4_ib_unlock_cqs(send_cq, recv_cq); in destroy_qp_common()
1150 init_attr->recv_cq = init_attr->send_cq; in mlx4_ib_create_qp()
1517 struct mlx4_ib_cq *send_cq, *recv_cq; in __mlx4_ib_modify_qp() local
1704 get_cqs(qp, &send_cq, &recv_cq); in __mlx4_ib_modify_qp()
1707 context->cqn_recv = cpu_to_be32(recv_cq->mcq.cqn); in __mlx4_ib_modify_qp()
1913 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in __mlx4_ib_modify_qp()
1915 if (send_cq != recv_cq) in __mlx4_ib_modify_qp()
3093 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx4_ib_post_recv()