Lines Matching refs:recv_cq
762 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
823 mthca_cq_clean(dev, to_mcq(qp->ibqp.recv_cq), qp->qpn, in __mthca_modify_qp()
825 if (qp->ibqp.send_cq != qp->ibqp.recv_cq) in __mthca_modify_qp()
1148 struct mthca_cq *recv_cq, in mthca_alloc_qp_common() argument
1276 struct mthca_cq *recv_cq, in mthca_alloc_qp() argument
1303 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_qp()
1318 static void mthca_lock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_lock_cqs() argument
1319 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mthca_lock_cqs()
1321 if (send_cq == recv_cq) { in mthca_lock_cqs()
1323 __acquire(&recv_cq->lock); in mthca_lock_cqs()
1324 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_lock_cqs()
1326 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mthca_lock_cqs()
1328 spin_lock_irq(&recv_cq->lock); in mthca_lock_cqs()
1333 static void mthca_unlock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_unlock_cqs() argument
1334 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mthca_unlock_cqs()
1336 if (send_cq == recv_cq) { in mthca_unlock_cqs()
1337 __release(&recv_cq->lock); in mthca_unlock_cqs()
1339 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_unlock_cqs()
1340 spin_unlock(&recv_cq->lock); in mthca_unlock_cqs()
1344 spin_unlock_irq(&recv_cq->lock); in mthca_unlock_cqs()
1351 struct mthca_cq *recv_cq, in mthca_alloc_sqp() argument
1387 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_sqp()
1401 mthca_lock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1407 mthca_unlock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1431 struct mthca_cq *recv_cq; in mthca_free_qp() local
1434 recv_cq = to_mcq(qp->ibqp.recv_cq); in mthca_free_qp()
1440 mthca_lock_cqs(send_cq, recv_cq); in mthca_free_qp()
1448 mthca_unlock_cqs(send_cq, recv_cq); in mthca_free_qp()
1462 mthca_cq_clean(dev, recv_cq, qp->qpn, in mthca_free_qp()
1464 if (send_cq != recv_cq) in mthca_free_qp()
1840 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()