Lines Matching refs:recv_cq
774 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
835 mthca_cq_clean(dev, to_mcq(qp->ibqp.recv_cq), qp->qpn, in __mthca_modify_qp()
837 if (qp->ibqp.send_cq != qp->ibqp.recv_cq) in __mthca_modify_qp()
1165 struct mthca_cq *recv_cq, in mthca_alloc_qp_common() argument
1294 struct mthca_cq *recv_cq, in mthca_alloc_qp() argument
1321 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_qp()
1336 static void mthca_lock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_lock_cqs() argument
1337 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mthca_lock_cqs()
1339 if (send_cq == recv_cq) { in mthca_lock_cqs()
1341 __acquire(&recv_cq->lock); in mthca_lock_cqs()
1342 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_lock_cqs()
1344 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mthca_lock_cqs()
1346 spin_lock_irq(&recv_cq->lock); in mthca_lock_cqs()
1351 static void mthca_unlock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_unlock_cqs() argument
1352 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mthca_unlock_cqs()
1354 if (send_cq == recv_cq) { in mthca_unlock_cqs()
1355 __release(&recv_cq->lock); in mthca_unlock_cqs()
1357 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_unlock_cqs()
1358 spin_unlock(&recv_cq->lock); in mthca_unlock_cqs()
1362 spin_unlock_irq(&recv_cq->lock); in mthca_unlock_cqs()
1369 struct mthca_cq *recv_cq, in mthca_alloc_sqp() argument
1406 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_sqp()
1420 mthca_lock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1426 mthca_unlock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1449 struct mthca_cq *recv_cq; in mthca_free_qp() local
1452 recv_cq = to_mcq(qp->ibqp.recv_cq); in mthca_free_qp()
1458 mthca_lock_cqs(send_cq, recv_cq); in mthca_free_qp()
1466 mthca_unlock_cqs(send_cq, recv_cq); in mthca_free_qp()
1480 mthca_cq_clean(dev, recv_cq, qp->qpn, in mthca_free_qp()
1482 if (send_cq != recv_cq) in mthca_free_qp()
1852 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mthca_tavor_post_receive()
2181 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mthca_arbel_post_receive()