Lines Matching refs:srq
789 if (!init_attr->srq) { in rvt_create_qp()
823 if (init_attr->srq) { in rvt_create_qp()
824 struct rvt_srq *srq = ibsrq_to_rvtsrq(init_attr->srq); in rvt_create_qp() local
826 if (srq->rq.max_sge > 1) in rvt_create_qp()
828 (srq->rq.max_sge - 1); in rvt_create_qp()
866 if (init_attr->srq) { in rvt_create_qp()
1495 attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1; in rvt_query_qp()
1520 init_attr->srq = qp->ibqp.srq; in rvt_query_qp()
1548 !qp->ibqp.srq; in rvt_post_recv()
1954 struct rvt_srq *srq = ibsrq_to_rvtsrq(ibsrq); in rvt_post_srq_recv() local
1963 if ((unsigned)wr->num_sge > srq->rq.max_sge) { in rvt_post_srq_recv()
1968 spin_lock_irqsave(&srq->rq.lock, flags); in rvt_post_srq_recv()
1969 wq = srq->rq.wq; in rvt_post_srq_recv()
1971 if (next >= srq->rq.size) in rvt_post_srq_recv()
1974 spin_unlock_irqrestore(&srq->rq.lock, flags); in rvt_post_srq_recv()
1979 wqe = rvt_get_rwqe_ptr(&srq->rq, wq->head); in rvt_post_srq_recv()
1987 spin_unlock_irqrestore(&srq->rq.lock, flags); in rvt_post_srq_recv()
2006 pd = ibpd_to_rvtpd(qp->ibqp.srq ? qp->ibqp.srq->pd : qp->ibqp.pd); in init_sge()
2058 struct rvt_srq *srq; in rvt_get_rwqe() local
2064 if (qp->ibqp.srq) { in rvt_get_rwqe()
2065 srq = ibsrq_to_rvtsrq(qp->ibqp.srq); in rvt_get_rwqe()
2066 handler = srq->ibsrq.event_handler; in rvt_get_rwqe()
2067 rq = &srq->rq; in rvt_get_rwqe()
2069 srq = NULL; in rvt_get_rwqe()
2122 if (n < srq->limit) { in rvt_get_rwqe()
2125 srq->limit = 0; in rvt_get_rwqe()
2128 ev.element.srq = qp->ibqp.srq; in rvt_get_rwqe()
2130 handler(&ev, srq->ibsrq.srq_context); in rvt_get_rwqe()