Home
last modified time | relevance | path

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

/kernel/liteos_a/kernel/base/vm/
Dlos_vm_scan.c68 LosVmPhysSeg *physSeg = fpage->physSeg; in OsLruCacheAdd() local
71 LOS_SpinLockSave(&physSeg->lruLock, &intSave); in OsLruCacheAdd()
74 physSeg->lruSize[lruType]++; in OsLruCacheAdd()
75 LOS_ListTailInsert(&physSeg->lruList[lruType], &fpage->lru); in OsLruCacheAdd()
77 LOS_SpinUnlockRestore(&physSeg->lruLock, intSave); in OsLruCacheAdd()
83 LosVmPhysSeg *physSeg = fpage->physSeg; in OsLruCacheDel() local
86 physSeg->lruSize[type]--; in OsLruCacheDel()
90 BOOL OsInactiveListIsLow(LosVmPhysSeg *physSeg) in OsInactiveListIsLow() argument
92 return (physSeg->lruSize[VM_LRU_ACTIVE_FILE] > in OsInactiveListIsLow()
93 physSeg->lruSize[VM_LRU_INACTIVE_FILE]) ? TRUE : FALSE; in OsInactiveListIsLow()
[all …]
Dlos_vm_filemap.c155 LOS_SpinLockSave(&fpage->physSeg->lruLock, &intSave); in OsPageCacheUnmap()
167 LOS_SpinUnlockRestore(&fpage->physSeg->lruLock, intSave); in OsPageCacheUnmap()
323 SPIN_LOCK_S *lruLock = &fpage->physSeg->lruLock; in OsReleaseFpage()
447 LOS_SpinLockSave(&fpage->physSeg->lruLock, &lruLock); in OsFileCacheFlush()
454 LOS_SpinUnlockRestore(&fpage->physSeg->lruLock, lruLock); in OsFileCacheFlush()
475 lruLock = &fpage->physSeg->lruLock; in OsFileCacheRemove()
562 LosVmPhysSeg *physSeg = NULL; in OsPageCacheAlloc() local
571 physSeg = OsVmPhysSegGet(vmPage); in OsPageCacheAlloc()
573 if ((physSeg == NULL) || (kvaddr == NULL)) { in OsPageCacheAlloc()
594 fpage->physSeg = physSeg; in OsPageCacheAlloc()
Dlos_vm_dump.c546 LosVmPhysSeg *physSeg = NULL; in OsVmPhysUsedInfoGet() local
555 physSeg = &g_vmPhysSeg[index]; in OsVmPhysUsedInfoGet()
556 if (physSeg->size > 0) { in OsVmPhysUsedInfoGet()
557 *totalCount += physSeg->size >> PAGE_SHIFT; in OsVmPhysUsedInfoGet()
558 segFreePages = OsVmPhySegPagesGet(physSeg); in OsVmPhysUsedInfoGet()
/kernel/liteos_a/kernel/base/include/
Dlos_vm_filemap.h59 struct VmPhysSeg *physSeg; /* physical memory that file page belongs to */ member