Home
last modified time | relevance | path

Searched refs:ROUNDDOWN (Results 1 – 7 of 7) sorted by relevance

/kernel/liteos_a/kernel/base/include/
Dlos_vm_common.h70 #define ROUNDDOWN(a, b) ((a) & ~((b) - 1)) macro
/kernel/liteos_a/kernel/extended/dynload/src/
Dlos_load_elf.c394 …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/
Dlos_arch_mmu.c231 …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()
Dlos_exc.c234 OsArmWriteTlbimvaais(ROUNDDOWN(far, PAGE_SIZE)); in OsArmSharedPageFault()
1129 VADDR_T vaddr = ROUNDDOWN(far, PAGE_SIZE); in OsPrintExcHead()
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_fault.c386 vaddr = ROUNDDOWN(vaddr, PAGE_SIZE); in OsVmPageFaultHandler()
Dlos_vm_syscall.c509 if (LOS_IsRangeInSpace(space, ROUNDDOWN(vaddr, MB), MB) == FALSE) { in LOS_DumpMemRegion()
Dshm.c520 vaddr = ROUNDDOWN((VADDR_T)(UINTPTR)shmaddr, SHMLBA); in ShmatVmmAlloc()