Searched refs:ROUNDDOWN (Results 1 – 7 of 7) sorted by relevance
/kernel/liteos_a/kernel/base/include/ |
D | los_vm_common.h | 70 #define ROUNDDOWN(a, b) ((a) & ~((b) - 1)) macro
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
D | los_load_elf.c | 394 …size = ROUNDUP(addrMax, PAGE_SIZE) - ROUNDDOWN(addrMin, PAGE_SIZE) + ROUNDDOWN(offStart, PAGE_SIZE… in OsGetAllocSize() 405 addr = ROUNDDOWN(addr, PAGE_SIZE); in OsDoMmapFile() 733 return ROUNDDOWN(randomValue, PAGE_SIZE); in OsGetRndOffset() 846 UINTPTR *topMem = (UINTPTR *)ROUNDDOWN(loadInfo->topOfMem, sizeof(UINTPTR)); in OsPutParamToStack() 851 loadInfo->topOfMem = ROUNDDOWN((UINTPTR)(topMem - vecIndex - items), STACK_ALIGN_SIZE); in OsPutParamToStack()
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_arch_mmu.c | 231 …ttEntry = archMmu->virtTtb[ROUNDDOWN(l1Index, MMU_DESCRIPTOR_L1_SMALL_L2_TABLES_PER_PAGE) + index]; in OsPutL2Table() 618 …ttEntry = archMmu->virtTtb[ROUNDDOWN(l1Index, MMU_DESCRIPTOR_L1_SMALL_L2_TABLES_PER_PAGE) + index]; in OsGetL2Table() 620 …*ppa = (PADDR_T)ROUNDDOWN(MMU_DESCRIPTOR_L1_PAGE_TABLE_ADDR(ttEntry), MMU_DESCRIPTOR_L2_SMALL_SIZE… in OsGetL2Table()
|
D | los_exc.c | 234 OsArmWriteTlbimvaais(ROUNDDOWN(far, PAGE_SIZE)); in OsArmSharedPageFault() 1129 VADDR_T vaddr = ROUNDDOWN(far, PAGE_SIZE); in OsPrintExcHead()
|
/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_fault.c | 386 vaddr = ROUNDDOWN(vaddr, PAGE_SIZE); in OsVmPageFaultHandler()
|
D | los_vm_syscall.c | 509 if (LOS_IsRangeInSpace(space, ROUNDDOWN(vaddr, MB), MB) == FALSE) { in LOS_DumpMemRegion()
|
D | shm.c | 520 vaddr = ROUNDDOWN((VADDR_T)(UINTPTR)shmaddr, SHMLBA); in ShmatVmmAlloc()
|