Lines Matching refs:si_swapslots
190 CLEARBIT(sip->si_swapslots, btop(noff - sip->si_soff));
226 for (sp = &sip->si_swapslots[sip->si_hint >> MAPSHIFT],
227 ep = &sip->si_swapslots[sip->si_mapsize / NBPW]; sp < ep; sp++) {
240 for (sp = &sip->si_swapslots[sip->si_hint >> MAPSHIFT],
241 ep = sip->si_swapslots; sp > ep; sp--) {
248 for (sp = sip->si_swapslots,
249 ep = &sip->si_swapslots[sip->si_hint >> MAPSHIFT];
264 * aoff is the page number offset (in bytes) of the si_swapslots
268 * (i.e. cleared bit) in si_swapslots[aoff].
270 aoff = ((char *)sp - (char *)sip->si_swapslots) * NBBY;
273 if (!TESTBIT(sip->si_swapslots, aoff + boff))
279 if (!TESTBIT(sip->si_swapslots, aoff + boff))
304 SETBIT(sip->si_swapslots, slotnumber);
331 if (!TESTBIT(sip->si_swapslots, pagenumber)) {
337 CLEARBIT(sip->si_swapslots, pagenumber);
1229 nsip->si_swapslots = kmem_zalloc(nsip->si_mapsize, KM_SLEEP);
1241 SETBIT(nsip->si_swapslots, i);
1347 kmem_free(nsip->si_swapslots, (size_t)nsip->si_mapsize);
1466 ASSERT(TESTBIT(osip->si_swapslots,
1538 kmem_free(osip->si_swapslots, osip->si_mapsize);