Searched refs:hr_wq (Results 1 – 2 of 2) sorted by relevance
1581 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, u32 nreq, in hns_roce_wq_overflow() argument1587 cur = hr_wq->head - hr_wq->tail; in hns_roce_wq_overflow()1588 if (likely(cur + nreq < hr_wq->wqe_cnt)) in hns_roce_wq_overflow()1593 cur = hr_wq->head - hr_wq->tail; in hns_roce_wq_overflow()1596 return cur + nreq >= hr_wq->wqe_cnt; in hns_roce_wq_overflow()
1284 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, u32 nreq,