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()
1162 struct mthca_cq *recv_cq, in mthca_alloc_qp_common() argument
1291 struct mthca_cq *recv_cq, in mthca_alloc_qp() argument
1318 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_qp()
1333 static void mthca_lock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_lock_cqs() argument
1334 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mthca_lock_cqs()
1336 if (send_cq == recv_cq) { in mthca_lock_cqs()
1338 __acquire(&recv_cq->lock); in mthca_lock_cqs()
1339 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_lock_cqs()
1341 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mthca_lock_cqs()
1343 spin_lock_irq(&recv_cq->lock); in mthca_lock_cqs()
1348 static void mthca_unlock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_unlock_cqs() argument
1349 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mthca_unlock_cqs()
1351 if (send_cq == recv_cq) { in mthca_unlock_cqs()
1352 __release(&recv_cq->lock); in mthca_unlock_cqs()
1354 } else if (send_cq->cqn < recv_cq->cqn) { in mthca_unlock_cqs()
1355 spin_unlock(&recv_cq->lock); in mthca_unlock_cqs()
1359 spin_unlock_irq(&recv_cq->lock); in mthca_unlock_cqs()
1366 struct mthca_cq *recv_cq, in mthca_alloc_sqp() argument
1403 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_sqp()
1417 mthca_lock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1423 mthca_unlock_cqs(send_cq, recv_cq); in mthca_alloc_sqp()
1446 struct mthca_cq *recv_cq; in mthca_free_qp() local
1449 recv_cq = to_mcq(qp->ibqp.recv_cq); in mthca_free_qp()
1455 mthca_lock_cqs(send_cq, recv_cq); in mthca_free_qp()
1463 mthca_unlock_cqs(send_cq, recv_cq); in mthca_free_qp()
1477 mthca_cq_clean(dev, recv_cq, qp->qpn, in mthca_free_qp()
1479 if (send_cq != recv_cq) in mthca_free_qp()
1849 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mthca_tavor_post_receive()
2178 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mthca_arbel_post_receive()