Lines Matching defs:rq
159 struct ipath_rq *rq;
170 rq = &srq->rq;
174 rq = &qp->r_rq;
177 spin_lock_irqsave(&rq->lock, flags);
178 wq = rq->wq;
181 if (tail >= rq->size)
185 spin_unlock_irqrestore(&rq->lock, flags);
189 wqe = get_rwqe_ptr(rq, tail);
190 if (++tail >= rq->size)
206 if (n >= rq->size)
209 n += rq->size - tail;
216 spin_unlock_irqrestore(&rq->lock, flags);
224 spin_unlock_irqrestore(&rq->lock, flags);