Lines Matching refs:qpn
107 u32 i, offset, max_scan, qpn;
132 qpn = qpt->last + 1;
133 if (qpn >= QPN_MAX)
134 qpn = 2;
135 offset = qpn & BITS_PER_PAGE_MASK;
136 map = &qpt->map[qpn / BITS_PER_PAGE];
148 qpt->last = qpn;
149 ret = qpn;
153 qpn = mk_qpn(qpt, map, offset);
162 } while (offset < BITS_PER_PAGE && qpn < QPN_MAX);
181 qpn = mk_qpn(qpt, map, offset);
190 static void free_qpn(struct ipath_qp_table *qpt, u32 qpn)
194 map = qpt->map + qpn / BITS_PER_PAGE;
196 clear_bit(qpn & BITS_PER_PAGE_MASK, map->page);
296 * @qpn: the QP number to look up
301 struct ipath_qp *ipath_lookup_qpn(struct ipath_qp_table *qpt, u32 qpn)
308 for (qp = qpt->table[qpn % qpt->max]; qp; qp = qp->next) {
309 if (qp->ibqp.qp_num == qpn) {