Lines Matching refs:recv_cq
276 struct ib_cq *send_cq, struct ib_cq *recv_cq) in add_qp_to_list() argument
282 hr_recv_cq = recv_cq ? to_hr_cq(recv_cq) : NULL; in add_qp_to_list()
313 init_attr->recv_cq); in hns_roce_qp_store()
1345 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) in hns_roce_lock_cqs() argument
1346 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in hns_roce_lock_cqs()
1348 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_lock_cqs()
1350 __acquire(&recv_cq->lock); in hns_roce_lock_cqs()
1351 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_lock_cqs()
1353 __acquire(&recv_cq->lock); in hns_roce_lock_cqs()
1354 } else if (unlikely(send_cq == NULL && recv_cq != NULL)) { in hns_roce_lock_cqs()
1355 spin_lock_irq(&recv_cq->lock); in hns_roce_lock_cqs()
1357 } else if (send_cq == recv_cq) { in hns_roce_lock_cqs()
1359 __acquire(&recv_cq->lock); in hns_roce_lock_cqs()
1360 } else if (send_cq->cqn < recv_cq->cqn) { in hns_roce_lock_cqs()
1362 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in hns_roce_lock_cqs()
1364 spin_lock_irq(&recv_cq->lock); in hns_roce_lock_cqs()
1370 struct hns_roce_cq *recv_cq) __releases(&send_cq->lock) in hns_roce_unlock_cqs() argument
1371 __releases(&recv_cq->lock) in hns_roce_unlock_cqs()
1373 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_unlock_cqs()
1374 __release(&recv_cq->lock); in hns_roce_unlock_cqs()
1376 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_unlock_cqs()
1377 __release(&recv_cq->lock); in hns_roce_unlock_cqs()
1379 } else if (unlikely(send_cq == NULL && recv_cq != NULL)) { in hns_roce_unlock_cqs()
1381 spin_unlock(&recv_cq->lock); in hns_roce_unlock_cqs()
1382 } else if (send_cq == recv_cq) { in hns_roce_unlock_cqs()
1383 __release(&recv_cq->lock); in hns_roce_unlock_cqs()
1385 } else if (send_cq->cqn < recv_cq->cqn) { in hns_roce_unlock_cqs()
1386 spin_unlock(&recv_cq->lock); in hns_roce_unlock_cqs()
1390 spin_unlock_irq(&recv_cq->lock); in hns_roce_unlock_cqs()