RVT_BITS_PER_PAGE
qpt->nmaps = rdi->dparms.qpn_res_start / RVT_BITS_PER_PAGE;
if (offset == RVT_BITS_PER_PAGE) {
return (map - qpt->map) * RVT_BITS_PER_PAGE + off;
map = &qpt->map[qpn / RVT_BITS_PER_PAGE];
} while (offset < RVT_BITS_PER_PAGE && qpn < RVT_QPN_MAX);
map = qpt->map + (qpn & RVT_QPN_MASK) / RVT_BITS_PER_PAGE;
#define RVT_BITS_PER_PAGE_MASK (RVT_BITS_PER_PAGE - 1)