Home
last modified time | relevance | path

Searched refs:nPage (Results 1 – 4 of 4) sorted by relevance

/kernel/liteos_a/kernel/base/vm/
Dlos_vm_page.c76 UINT32 nPage; in OsVmPageStartup() local
87 nPage = pageNum * PAGE_SIZE / (sizeof(LosVmPage) + PAGE_SIZE); in OsVmPageStartup()
88 g_vmPageArraySize = nPage * sizeof(LosVmPage); in OsVmPageStartup()
101 nPage = seg->size >> PAGE_SHIFT; in OsVmPageStartup()
102 UINT32 count = nPage >> 3; /* 3: 2 ^ 3, nPage / 8, cycle count */ in OsVmPageStartup()
103 UINT32 left = nPage & 0x7; /* 0x7: nPage % 8, left page */ in OsVmPageStartup()
119 OsVmPageOrderListInit(seg->pageBase, nPage); in OsVmPageStartup()
Dlos_vm_scan.c289 int OsTryShrinkMemory(size_t nPage) in OsTryShrinkMemory() argument
300 if (nPage == 0) { in OsTryShrinkMemory()
301 nPage = VM_FILEMAP_MIN_SCAN; in OsTryShrinkMemory()
304 if (nPage > VM_FILEMAP_MAX_SCAN) { in OsTryShrinkMemory()
305 nPage = VM_FILEMAP_MAX_SCAN; in OsTryShrinkMemory()
318 … OsShrinkActiveList(physSeg, (nPage < VM_FILEMAP_MIN_SCAN) ? VM_FILEMAP_MIN_SCAN : nPage); in OsTryShrinkMemory()
321 nReclaimed += OsShrinkInactiveList(physSeg, nPage, &dirtyList); in OsTryShrinkMemory()
324 if (nReclaimed >= nPage) { in OsTryShrinkMemory()
336 int OsTryShrinkMemory(size_t nPage) in OsTryShrinkMemory() argument
Dlos_vm_phys.c603 LosVmPage *nPage = NULL; in LOS_PhysPagesFree() local
611 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(page, nPage, list, LosVmPage, node) { in LOS_PhysPagesFree()
/kernel/liteos_a/kernel/base/include/
Dlos_vm_filemap.h210 int OsTryShrinkMemory(size_t nPage);