Lines Matching refs:wq
229 static void mthca_wq_reset(struct mthca_wq *wq)
231 wq->next_ind = 0;
232 wq->last_comp = wq->max - 1;
233 wq->head = 0;
234 wq->tail = 0;
1559 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq,
1565 cur = wq->head - wq->tail;
1566 if (likely(cur + nreq < wq->max))
1571 cur = wq->head - wq->tail;
1574 return cur + nreq >= wq->max;