Lines Matching defs:kwq
830 /* need kwq with no buffers */
831 rq->kwq = kzalloc_node(sizeof(*rq->kwq), GFP_KERNEL, node);
832 if (!rq->kwq)
834 rq->kwq->curr_wq = rq->wq->wq;
836 /* need kwq with buffers */
837 rq->kwq =
839 if (!rq->kwq)
841 rq->kwq->curr_wq = rq->kwq->wq;
844 spin_lock_init(&rq->kwq->p_lock);
845 spin_lock_init(&rq->kwq->c_lock);
1382 if (qp->r_rq.kwq) {
1386 struct rvt_krwq *kwq = NULL;
1388 spin_lock(&qp->r_rq.kwq->c_lock);
1395 kwq = qp->r_rq.kwq;
1396 head = kwq->head;
1397 tail = kwq->tail;
1413 kwq->tail = tail;
1414 spin_unlock(&qp->r_rq.kwq->c_lock);
1750 kvfree(qp->r_rq.kwq);
1837 struct rvt_krwq *wq = qp->r_rq.kwq;
1858 spin_lock_irqsave(&qp->r_rq.kwq->p_lock, flags);
1863 spin_unlock_irqrestore(&qp->r_rq.kwq->p_lock, flags);
1891 spin_unlock_irqrestore(&qp->r_rq.kwq->p_lock, flags);
2272 spin_lock_irqsave(&srq->rq.kwq->p_lock, flags);
2273 wq = srq->rq.kwq;
2278 spin_unlock_irqrestore(&srq->rq.kwq->p_lock, flags);
2293 spin_unlock_irqrestore(&srq->rq.kwq->p_lock, flags);
2379 head = rq->kwq->head;
2398 struct rvt_krwq *kwq = NULL;
2420 spin_lock_irqsave(&rq->kwq->c_lock, flags);
2425 kwq = rq->kwq;
2430 tail = kwq->tail;
2437 if (kwq->count < RVT_RWQ_COUNT_THRESHOLD) {
2439 kwq->count = rvt_get_rq_count(rq, head, tail);
2441 if (unlikely(kwq->count == 0)) {
2458 kwq->tail = tail;
2465 kwq->count--;
2473 if (kwq->count < srq->limit) {
2474 kwq->count =
2477 if (kwq->count < srq->limit) {
2481 spin_unlock_irqrestore(&rq->kwq->c_lock, flags);
2491 spin_unlock_irqrestore(&rq->kwq->c_lock, flags);