Lines Matching refs:apPages
84 /** The pages in the apPages array. */
87 struct page *apPages[1];
297 PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_OFFSETOF(RTR0MEMOBJLNX, apPages[cPages]), enmType, NULL, cb);
331 pMemLnx->apPages[iPage] = &paPages[iPage];
344 pMemLnx->apPages[iPage] = alloc_page(fFlagsLnx | __GFP_NOWARN);
345 if (RT_UNLIKELY(!pMemLnx->apPages[iPage]))
348 __free_page(pMemLnx->apPages[iPage]);
365 pMemLnx->apPages[iPage] = &paPages[iPage];
366 MY_SET_PAGES_EXEC(pMemLnx->apPages[iPage], 1);
367 if (PageHighMem(pMemLnx->apPages[iPage]))
379 SetPageReserved(pMemLnx->apPages[iPage]);
392 if (RT_UNLIKELY(page_to_phys(pMemLnx->apPages[0]) & (uAlignment - 1)))
398 (unsigned long)cb, (unsigned long)uAlignment, rtR0MemObjLinuxOrder(cPages), (unsigned long)page_to_phys(pMemLnx->apPages[0]));
426 ClearPageReserved(pMemLnx->apPages[iPage]);
429 MY_SET_PAGES_NOEXEC(pMemLnx->apPages[iPage], 1);
441 __free_page(pMemLnx->apPages[iPage]);
445 __free_pages(pMemLnx->apPages[0], rtR0MemObjLinuxOrder(pMemLnx->cPages));
478 if (PageHighMem(pMemLnx->apPages[iPage]))
502 pMemLnx->Core.pv = vmap(&pMemLnx->apPages[0], pMemLnx->cPages, VM_MAP, fPg);
504 pMemLnx->Core.pv = vmap(&pMemLnx->apPages[0], pMemLnx->cPages, VM_ALLOC, fPg);
519 pMemLnx->Core.pv = phys_to_virt(page_to_phys(pMemLnx->apPages[0]));
578 if (!PageReserved(pMemLnx->apPages[iPage]))
579 SetPageDirty(pMemLnx->apPages[iPage]);
580 page_cache_release(pMemLnx->apPages[iPage]);
602 Assert(pMemLnx->cPages == 1 && pMemLnx->apPages[0] != NULL);
603 __free_page(pMemLnx->apPages[0]);
604 pMemLnx->apPages[0] = NULL;
729 Assert(page_to_phys(pMemLnx->apPages[iPage]) < _4G);
731 pMemLnx->Core.u.Cont.Phys = page_to_phys(pMemLnx->apPages[0]);
775 if (page_to_phys(pMemLnx->apPages[iPage]) > PhysHighest)
788 pMemLnx->Core.u.Phys.PhysBase = page_to_phys(pMemLnx->apPages[0]);
997 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_OFFSETOF(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb);
1015 &pMemLnx->apPages[0], /* Page array. */
1037 flush_dcache_page(pMemLnx->apPages[rc]);
1058 if (!PageReserved(pMemLnx->apPages[rc]))
1059 SetPageDirty(pMemLnx->apPages[rc]);
1060 page_cache_release(pMemLnx->apPages[rc]);
1106 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_OFFSETOF(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, pv, cb);
1127 pMemLnx->apPages[iPage] = pPage;
1135 pMemLnx->apPages[iPage] = virt_to_page(pbPage);
1196 pMemLnx->apPages[0] = pDummyPage;
1278 pMemLnx->Core.pv = vmap(&pMemLnxToMap->apPages[0], pMemLnxToMap->cPages, VM_MAP, fPg);
1280 pMemLnx->Core.pv = vmap(&pMemLnxToMap->apPages[0], pMemLnxToMap->cPages, VM_ALLOC, fPg);
1447 RTHCPHYS Phys = page_to_phys(pMemLnxToMap->apPages[iPage]);
1459 rc = vm_insert_page(vma, ulAddrCur, pMemLnxToMap->apPages[iPage]);
1468 rc = remap_pfn_range(vma, ulAddrCur, page_to_pfn(pMemLnxToMap->apPages[iPage]), PAGE_SIZE, fPg);
1599 return page_to_phys(pMemLnx->apPages[iPage]);