Lines Matching defs:pages
146 #define kMinZoneSize 4 // Minimum Zone size in pages
147 #define kMaxNumZones (31 - 14) // 31 bit mapped in 16K super pages
202 virtual ppnum_t iovmAlloc(IOItemCount pages);
203 virtual void iovmFree(ppnum_t addr, IOItemCount pages);
323 fNumZones -= 3; // correct for overshoot and minumum 16K pages allocation
406 ppnum_t AppleDART::iovmAlloc(IOItemCount pages)
413 pages += 1;
416 if (pages < kMinZoneSize)
417 pages = kMinZoneSize;
420 if (pages >= fMapperRegionSize/2)
427 for (zone = 0, zoneSize = kMinZoneSize; pages > zoneSize; zone++)
464 for (cnt = 0; cnt < pages; cnt++) {
521 void AppleDART::iovmFree(ppnum_t addr, IOItemCount pages)
527 pages += 1;
530 if (pages < kMinZoneSize)
531 pages = kMinZoneSize;
534 if (pages >= fMapperRegionSize/2)
538 for (zone = 0, zoneSize = kMinZoneSize; pages > zoneSize; zone++)
544 invalidateDART(addr, pages);