Lines Matching refs:recv_cq
758 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
819 mthca_cq_clean(dev, to_mcq(qp->ibqp.recv_cq), qp->qpn, in __mthca_modify_qp()
821 if (qp->ibqp.send_cq != qp->ibqp.recv_cq) in __mthca_modify_qp()
1144 struct mthca_cq *recv_cq, in mthca_alloc_qp_common() argument
1272 struct mthca_cq *recv_cq, in mthca_alloc_qp() argument
1298 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_qp()
1313 static void mthca_lock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_lock_cqs() argument
1314 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mthca_lock_cqs()
1316 if (send_cq == recv_cq) { in mthca_lock_cqs()
1318 __acquire(&recv_cq->lock); in mthca_lock_cqs()
1319 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_lock_cqs()
1321 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mthca_lock_cqs()
1323 spin_lock_irq(&recv_cq->lock); in mthca_lock_cqs()
1328 static void mthca_unlock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_unlock_cqs() argument
1329 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mthca_unlock_cqs()
1331 if (send_cq == recv_cq) { in mthca_unlock_cqs()
1332 __release(&recv_cq->lock); in mthca_unlock_cqs()
1334 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_unlock_cqs()
1335 spin_unlock(&recv_cq->lock); in mthca_unlock_cqs()
1339 spin_unlock_irq(&recv_cq->lock); in mthca_unlock_cqs()
1346 struct mthca_cq *recv_cq, in mthca_alloc_sqp() argument
1381 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_sqp()
1395 mthca_lock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1401 mthca_unlock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1425 struct mthca_cq *recv_cq; in mthca_free_qp() local
1428 recv_cq = to_mcq(qp->ibqp.recv_cq); in mthca_free_qp()
1434 mthca_lock_cqs(send_cq, recv_cq); in mthca_free_qp()
1442 mthca_unlock_cqs(send_cq, recv_cq); in mthca_free_qp()
1456 mthca_cq_clean(dev, recv_cq, qp->qpn, in mthca_free_qp()
1458 if (send_cq != recv_cq) in mthca_free_qp()
1834 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mthca_tavor_post_receive()
2175 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mthca_arbel_post_receive()