Searched refs:hr_wq (Results 1 – 2 of 2) sorted by relevance
1285 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, int nreq, in hns_roce_wq_overflow() argument1291 cur = hr_wq->head - hr_wq->tail; in hns_roce_wq_overflow()1292 if (likely(cur + nreq < hr_wq->max_post)) in hns_roce_wq_overflow()1297 cur = hr_wq->head - hr_wq->tail; in hns_roce_wq_overflow()1300 return cur + nreq >= hr_wq->max_post; in hns_roce_wq_overflow()
1246 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, int nreq,