Lines Matching refs:pages
141 fNumZones -= 3; // correct for overshoot and minumum 16K pages allocation
204 ppnum_t IOCopyMapper::iovmAlloc(IOItemCount pages)
211 if (pages < kMinZoneSize)
212 pages = kMinZoneSize;
215 if (pages >= fMapperRegionSize/2)
217 panic("iovmAlloc 0x%lx", pages);
222 for (zone = 0, zoneSize = kMinZoneSize; pages > zoneSize; zone++)
251 DEBG("va: 0x%lx, %ld, ret %x next %x\n", (ret * kActivePerFree) + fBufferPage, pages, ret, next);
261 for (cnt = 0; cnt < pages; cnt++) {
266 fMapperRegionUsed += pages;
285 void IOCopyMapper::iovmFree(ppnum_t addr, IOItemCount pages)
295 if (pages < kMinZoneSize)
296 pages = kMinZoneSize;
299 if (pages >= fMapperRegionSize/2)
303 for (zone = 0, zoneSize = kMinZoneSize; pages > zoneSize; zone++)
309 invalidateDART(addr, pages);
338 DEBG("vf: 0x%lx, %ld, z %d, head %lx, new %x\n", addr * kActivePerFree + fBufferPage, pages, z, fFreeLists[z], addr);
348 fMapperRegionUsed -= pages;