Lines Matching refs:page
43 void releasePage(Page *page);
45 void appendPage(Page *page);
79 Page *page = *it; in freePages() local
81 free(page->mData); in freePages()
82 delete page; in freePages()
83 page = NULL; in freePages()
92 Page *page = *it; in acquirePage() local
95 return page; in acquirePage()
98 Page *page = new Page; in acquirePage() local
99 page->mData = malloc(mPageSize); in acquirePage()
100 page->mSize = 0; in acquirePage()
102 return page; in acquirePage()
105 void PageCache::releasePage(Page *page) { in releasePage() argument
106 page->mSize = 0; in releasePage()
107 mFreePages.push_back(page); in releasePage()
110 void PageCache::appendPage(Page *page) { in appendPage() argument
111 mTotalSize += page->mSize; in appendPage()
112 mActivePages.push_back(page); in appendPage()
121 Page *page = *it; in releaseFromStart() local
123 if (maxBytes < page->mSize) { in releaseFromStart()
129 maxBytes -= page->mSize; in releaseFromStart()
130 bytesReleased += page->mSize; in releaseFromStart()
132 releasePage(page); in releaseFromStart()
364 PageCache::Page *page = mCache->acquirePage(); in fetchInternal() local
367 mCacheOffset + mCache->totalSize(), page->mData, kPageSize); in fetchInternal()
377 mCache->releasePage(page); in fetchInternal()
387 mCache->releasePage(page); in fetchInternal()
395 page->mSize = n; in fetchInternal()
396 mCache->appendPage(page); in fetchInternal()