Lines Matching refs:i
94 for i in 0..MMArch::PAGE_ENTRY_NUM { in riscv_mm_init()
96 .set_entry(i, empty_entry) in riscv_mm_init()
103 for i in 0..total_num { in riscv_mm_init()
104 let area = mem_block_manager().get_initial_memory_region(i).unwrap(); in riscv_mm_init()
106 for i in 0..((area.size + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE) { in riscv_mm_init()
107 let paddr = area.base.add(i * MMArch::PAGE_SIZE); in riscv_mm_init()
185 for i in 0..(size / MMArch::PAGE_SIZE) { in remap_at_low_address()
186 let paddr = PhysAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address()
187 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address()
207 for i in 0..(size / MMArch::PAGE_SIZE) { in unmap_at_low_address()
208 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in unmap_at_low_address()