Lines Matching refs:i

344         for i in 0..mb2_count {  in init_memory_area_from_multiboot2()
346 if mb2_mem_info[i].type_ == 1 { in init_memory_area_from_multiboot2()
348 if mb2_mem_info[i].len == 0 { in init_memory_area_from_multiboot2()
352 total_mem_size += mb2_mem_info[i].len as usize; in init_memory_area_from_multiboot2()
356 PhysAddr::new(mb2_mem_info[i].addr as usize), in init_memory_area_from_multiboot2()
357 mb2_mem_info[i].len as usize, in init_memory_area_from_multiboot2()
362 mb2_mem_info[i].addr, in init_memory_area_from_multiboot2()
363 mb2_mem_info[i].len, in init_memory_area_from_multiboot2()
440 for i in 0..MMArch::PAGE_ENTRY_NUM { in allocator_init()
442 .set_entry(i, empty_entry) in allocator_init()
449 for i in 0..total_num { in allocator_init()
450 let area = mem_block_manager().get_initial_memory_region(i).unwrap(); in allocator_init()
452 for i in 0..((area.size + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE) { in allocator_init()
453 let paddr = area.base.add(i * MMArch::PAGE_SIZE); in allocator_init()
513 for i in 0..10 { in test_buddy()
558 for i in 0..slice.len() { in test_buddy()
559 slice[i] = ((i + unsafe { rdtsc() } as usize) % 256) as u8; in test_buddy()
665 for i in 0..(Self::REMAP_SIZE / MMArch::PAGE_SIZE) { in remap_at_low_address()
666 let paddr = PhysAddr::new(i * MMArch::PAGE_SIZE); in remap_at_low_address()
667 let vaddr = VirtAddr::new(i * MMArch::PAGE_SIZE); in remap_at_low_address()
682 for i in 0..(Self::REMAP_SIZE / MMArch::PAGE_SIZE) { in unmap_at_low_address()
683 let vaddr = VirtAddr::new(i * MMArch::PAGE_SIZE); in unmap_at_low_address()