Lines Matching refs:recv_cq
53 struct mlx4_ib_cq *recv_cq);
55 struct mlx4_ib_cq *recv_cq);
922 to_mcq(init_attr->recv_cq)); in create_rq()
932 mcq = to_mcq(init_attr->recv_cq); in create_rq()
935 to_mcq(init_attr->recv_cq)); in create_rq()
1196 to_mcq(init_attr->recv_cq)); in create_qp_common()
1206 mcq = to_mcq(init_attr->recv_cq); in create_qp_common()
1209 to_mcq(init_attr->recv_cq)); in create_qp_common()
1263 static void mlx4_ib_lock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_lock_cqs() argument
1264 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mlx4_ib_lock_cqs()
1266 if (send_cq == recv_cq) { in mlx4_ib_lock_cqs()
1268 __acquire(&recv_cq->lock); in mlx4_ib_lock_cqs()
1269 } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx4_ib_lock_cqs()
1271 spin_lock_nested(&recv_cq->lock, SINGLE_DEPTH_NESTING); in mlx4_ib_lock_cqs()
1273 spin_lock(&recv_cq->lock); in mlx4_ib_lock_cqs()
1278 static void mlx4_ib_unlock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_unlock_cqs() argument
1279 __releases(&send_cq->lock) __releases(&recv_cq->lock) in mlx4_ib_unlock_cqs()
1281 if (send_cq == recv_cq) { in mlx4_ib_unlock_cqs()
1282 __release(&recv_cq->lock); in mlx4_ib_unlock_cqs()
1284 } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx4_ib_unlock_cqs()
1285 spin_unlock(&recv_cq->lock); in mlx4_ib_unlock_cqs()
1289 spin_unlock(&recv_cq->lock); in mlx4_ib_unlock_cqs()
1312 struct mlx4_ib_cq **send_cq, struct mlx4_ib_cq **recv_cq) in get_cqs() argument
1317 *recv_cq = *send_cq; in get_cqs()
1321 *recv_cq = *send_cq; in get_cqs()
1324 *recv_cq = (src == MLX4_IB_QP_SRC) ? to_mcq(qp->ibqp.recv_cq) : in get_cqs()
1327 *recv_cq; in get_cqs()
1365 struct mlx4_ib_cq *send_cq, *recv_cq; in destroy_qp_common() local
1396 get_cqs(qp, src, &send_cq, &recv_cq); in destroy_qp_common()
1399 mlx4_ib_lock_cqs(send_cq, recv_cq); in destroy_qp_common()
1406 __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in destroy_qp_common()
1408 if (send_cq != recv_cq) in destroy_qp_common()
1414 mlx4_ib_unlock_cqs(send_cq, recv_cq); in destroy_qp_common()
1529 init_attr->recv_cq = init_attr->send_cq; in _mlx4_ib_create_qp()
2082 struct mlx4_ib_cq *send_cq, *recv_cq; in __mlx4_ib_modify_qp() local
2317 get_cqs(qp, src_type, &send_cq, &recv_cq); in __mlx4_ib_modify_qp()
2320 recv_cq = send_cq; in __mlx4_ib_modify_qp()
2323 context->cqn_recv = cpu_to_be32(recv_cq->mcq.cqn); in __mlx4_ib_modify_qp()
2539 mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, in __mlx4_ib_modify_qp()
2541 if (send_cq != recv_cq) in __mlx4_ib_modify_qp()
3831 if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in _mlx4_ib_post_recv()
4134 ib_qp_init_attr.recv_cq = init_attr->cq; in mlx4_ib_create_wq()
4135 ib_qp_init_attr.send_cq = ib_qp_init_attr.recv_cq; /* Dummy CQ */ in mlx4_ib_create_wq()
4444 struct ib_cq *cq = qp->recv_cq; in mlx4_ib_drain_rq()