Lines Matching refs:qpn
130 u32 i, offset, max_scan, qpn; in qib_alloc_qpn() local
152 qpn = qpt->last + 2; in qib_alloc_qpn()
153 if (qpn >= RVT_QPN_MAX) in qib_alloc_qpn()
154 qpn = 2; in qib_alloc_qpn()
155 if (qpt_mask && ((qpn & qpt_mask) >> 1) >= dd->n_krcv_queues) in qib_alloc_qpn()
156 qpn = (qpn | qpt_mask) + 2; in qib_alloc_qpn()
157 offset = qpn & RVT_BITS_PER_PAGE_MASK; in qib_alloc_qpn()
158 map = &qpt->map[qpn / RVT_BITS_PER_PAGE]; in qib_alloc_qpn()
168 qpt->last = qpn; in qib_alloc_qpn()
169 ret = qpn; in qib_alloc_qpn()
174 qpn = mk_qpn(qpt, map, offset); in qib_alloc_qpn()
183 } while (offset < RVT_BITS_PER_PAGE && qpn < RVT_QPN_MAX); in qib_alloc_qpn()
201 qpn = mk_qpn(qpt, map, offset); in qib_alloc_qpn()