Lines Matching refs:qpn
105 u32 i, offset, max_scan, qpn;
130 qpn = qpt->last + 1;
131 if (qpn >= QPN_MAX)
132 qpn = 2;
133 offset = qpn & BITS_PER_PAGE_MASK;
134 map = &qpt->map[qpn / BITS_PER_PAGE];
146 qpt->last = qpn;
147 ret = qpn;
151 qpn = mk_qpn(qpt, map, offset);
160 } while (offset < BITS_PER_PAGE && qpn < QPN_MAX);
179 qpn = mk_qpn(qpt, map, offset);
188 static void free_qpn(struct ipath_qp_table *qpt, u32 qpn)
192 map = qpt->map + qpn / BITS_PER_PAGE;
194 clear_bit(qpn & BITS_PER_PAGE_MASK, map->page);
306 * @qpn: the QP number to look up
311 struct ipath_qp *ipath_lookup_qpn(struct ipath_qp_table *qpt, u32 qpn)
318 for (qp = qpt->table[qpn % qpt->max]; qp; qp = qp->next) {
319 if (qp->ibqp.qp_num == qpn) {