Home
last modified time | relevance | path

Searched refs:CORE_MMU_SHIFT_OF_LEVEL (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/arch/riscv/include/mm/
H A Dcore_mmu_arch.h94 #define CORE_MMU_SHIFT_OF_LEVEL(level) (RISCV_PGLEVEL_BITS * \ macro
100 GENMASK_64(CORE_MMU_SHIFT_OF_LEVEL(level) - 1, 0)
103 GENMASK_32(CORE_MMU_SHIFT_OF_LEVEL(level) - 1, 0)
142 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_VPN0_LEVEL)
144 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_VPN1_LEVEL)
146 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_VPN2_LEVEL)
148 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_VPN3_LEVEL)
150 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_VPN4_LEVEL)
154 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_PGDIR_LEVEL + 1)
158 CORE_MMU_SHIFT_OF_LEVEL(CORE_MMU_BASE_TABLE_LEVEL)
/optee_os/core/arch/riscv/mm/
H A Dcore_mmu_arch.c259 unsigned int idx = va >> CORE_MMU_SHIFT_OF_LEVEL(level); in core_mmu_pgt_idx()
269 return SHIFT_U32(idx, CORE_MMU_SHIFT_OF_LEVEL(level)); in core_mmu_pgt_get_va_base()
271 vaddr_t va_base = SHIFT_U64(idx, CORE_MMU_SHIFT_OF_LEVEL(level)); in core_mmu_pgt_get_va_base()
831 tbl_info->shift = CORE_MMU_SHIFT_OF_LEVEL(level); in core_mmu_set_info_table()