• Home
  • Raw
  • Download

Lines Matching refs:send_cq

184 	struct ib_cq *scq = init_attr->send_cq;  in get_least_load_bankid_for_qp()
292 struct ib_cq *send_cq, struct ib_cq *recv_cq) in add_qp_to_list() argument
297 hr_send_cq = send_cq ? to_hr_cq(send_cq) : NULL; in add_qp_to_list()
328 add_qp_to_list(hr_dev, hr_qp, init_attr->send_cq, in hns_roce_qp_store()
1358 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) in hns_roce_lock_cqs() argument
1359 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in hns_roce_lock_cqs()
1361 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_lock_cqs()
1362 __acquire(&send_cq->lock); in hns_roce_lock_cqs()
1364 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_lock_cqs()
1365 spin_lock_irq(&send_cq->lock); in hns_roce_lock_cqs()
1367 } else if (unlikely(send_cq == NULL && recv_cq != NULL)) { in hns_roce_lock_cqs()
1369 __acquire(&send_cq->lock); in hns_roce_lock_cqs()
1370 } else if (send_cq == recv_cq) { in hns_roce_lock_cqs()
1371 spin_lock_irq(&send_cq->lock); in hns_roce_lock_cqs()
1373 } else if (send_cq->cqn < recv_cq->cqn) { in hns_roce_lock_cqs()
1374 spin_lock_irq(&send_cq->lock); in hns_roce_lock_cqs()
1378 spin_lock_nested(&send_cq->lock, SINGLE_DEPTH_NESTING); in hns_roce_lock_cqs()
1382 void hns_roce_unlock_cqs(struct hns_roce_cq *send_cq, in hns_roce_unlock_cqs() argument
1383 struct hns_roce_cq *recv_cq) __releases(&send_cq->lock) in hns_roce_unlock_cqs()
1386 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_unlock_cqs()
1388 __release(&send_cq->lock); in hns_roce_unlock_cqs()
1389 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_unlock_cqs()
1391 spin_unlock(&send_cq->lock); in hns_roce_unlock_cqs()
1392 } else if (unlikely(send_cq == NULL && recv_cq != NULL)) { in hns_roce_unlock_cqs()
1393 __release(&send_cq->lock); in hns_roce_unlock_cqs()
1395 } else if (send_cq == recv_cq) { in hns_roce_unlock_cqs()
1397 spin_unlock_irq(&send_cq->lock); in hns_roce_unlock_cqs()
1398 } else if (send_cq->cqn < recv_cq->cqn) { in hns_roce_unlock_cqs()
1400 spin_unlock_irq(&send_cq->lock); in hns_roce_unlock_cqs()
1402 spin_unlock(&send_cq->lock); in hns_roce_unlock_cqs()