Home | History | Annotate | Download | only in uvm

Lines Matching defs:slots

67 amap_roundup_slots(int slots)
70 return kmem_roundup_size(slots * sizeof(int)) / sizeof(int);
150 amap_alloc1(int slots, int padslots, int flags)
177 totalslots = amap_roundup_slots(slots + padslots);
184 amap->am_nslot = slots;
237 int slots, padslots;
240 AMAP_B2SLOT(slots, sz);
243 amap = amap_alloc1(slots, padslots, waitf);
322 int slots;
329 slots = amap->am_maxslot;
330 kmem_free(amap->am_slots, slots * sizeof(*amap->am_slots));
331 kmem_free(amap->am_bckptr, slots * sizeof(*amap->am_bckptr));
332 kmem_free(amap->am_anon, slots * sizeof(*amap->am_anon));
335 kmem_free(amap->am_ppref, slots * sizeof(*amap->am_ppref));
372 * first, determine how many slots we need in the amap. don't
374 * there are some unused slots before us in the amap.
379 AMAP_B2SLOT(slotmapped, entry->end - entry->start); /* slots mapped */
380 AMAP_B2SLOT(slotadd, addsize); /* slots to add */
394 * using slots between slotoff and slotoff + slotmapped. If
395 * we have been using ppref then we know that only slots in
399 * we couldn't know which slots were still needed by other map
422 * case 1: we already have enough slots in the map and thus
423 * only need to bump the reference counts on the slots we are
459 * case 2: we pre-allocated slots for use and we just need to
460 * bump nslot up to take account for these slots.
520 * wiping out the old slots.
535 * slots.
707 u_int slots, lcv, slot, stop;
712 AMAP_B2SLOT(slots, (entry->end - entry->start));
713 stop = entry->aref.ar_pageoff + slots;
715 if (slots < amap->am_nused) {
827 u_int slots, lcv;
856 /* Convert slots to bytes. */
915 AMAP_B2SLOT(slots, len);
916 amap = amap_alloc1(slots, 0, waitf);
953 * Copy the slots. Zero the padded part.
957 for (lcv = 0 ; lcv < slots; lcv++) {
1270 amap_wiperange(struct vm_amap *amap, int slotoff, int slots)
1282 if (slots < amap->am_nused) {
1285 stop = slotoff + slots;
1291 slotend = slotoff + slots;
1342 * amap_swap_off: pagein anonymous pages in amaps and drop swap slots.
1574 /* Move the last entry to keep the slots contiguous. */