Home
last modified time | relevance | path

Searched refs:page_count (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/src/driver/firmware/efi/
H A Dinit.rs110 let size = (md.page_count << (MMArch::PAGE_SHIFT as u64)) as usize; in efi_find_mirror()
240 && ((efi_vaddr - md.virt_start) < (md.page_count << (MMArch::PAGE_SHIFT as u64))) in efi_vaddr_2_paddr()
259 let page_count = (PhysPageFrame::new(PhysAddr::new(page_align_up( in reserve_memory_regions() localVariable
260 (md.phys_start + (md.page_count << (MMArch::PAGE_SHIFT as u64))) as usize, in reserve_memory_regions()
266 let size = (page_count << (MMArch::PAGE_SHIFT as u64)) as usize; in reserve_memory_regions()
H A Dtables.rs175 pub page_count: u64, field
236 page_count: 0, in default()
/DragonOS/kernel/src/driver/net/
H A Ddma.rs46 let page_count = PageFrameCount::new( in dma_dealloc() localVariable
62 page_count, in dma_dealloc()
/DragonOS/kernel/src/mm/
H A Dearly_ioremap.rs115 let page_count = PageFrameCount::new(slot_count); in map() localVariable
118 unsafe { pseudo_map_phys_ro(vaddr, phys, page_count) } in map()
120 unsafe { pseudo_map_phys(vaddr, phys, page_count) } in map()
H A Ducontext.rs440 page_count: PageFrameCount, in mmap()
445 if page_count == PageFrameCount::new(0) { in mmap()
454 .find_free_at(self.mmap_min, vaddr, page_count.bytes(), map_flags)? in mmap()
458 .find_free(self.mmap_min, page_count.bytes()) in mmap()
485 page_count, in mmap()
543 let page_count = PageFrameCount::from_bytes(new_len).unwrap(); in mremap() localVariable
544 self.munmap(start_page, page_count)?; in mremap()
578 page_count: PageFrameCount, in munmap()
580 let to_unmap = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in munmap()
614 page_count: PageFrameCount, in mprotect()
[all …]
H A Dsyscall.rs463 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in munmap() localVariable
467 .munmap(start_frame, page_count) in munmap()
499 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in mprotect() localVariable
503 .mprotect(start_frame, page_count, prot_flags) in mprotect()
535 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in madvise() localVariable
539 .madvise(start_frame, page_count, madv_flags) in madvise()
H A Dmmio_buddy.rs542 let page_count = length / MMArch::PAGE_SIZE; in release_mmio() localVariable
551 for i in 0..page_count { in release_mmio()
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs57 let page_count = PageFrameCount::new( in dma_dealloc() localVariable
73 page_count, in dma_dealloc()
/DragonOS/kernel/src/perf/
H A Dbpf.rs234 let (phy_addr, page_count) = in do_mmap()
239 for i in 0..page_count.data() { in do_mmap()
267 let page_count = PageFrameCount::new(len / PAGE_SIZE); in drop() localVariable
269 for _ in 0..page_count.data() { in drop()
/DragonOS/kernel/src/ipc/
H A Dshm.rs161 let page_count = PageFrameCount::from_bytes(page_align_up(size)).unwrap(); in add() localVariable
163 unsafe { LockedFrameAllocator.allocate(page_count) }.ok_or(SystemError::EINVAL)?; in add()
167 for _ in 0..page_count.data() { in add()
442 let page_count = PageFrameCount::from_bytes(page_align_up(self.shm_size)).unwrap(); in map_count() localVariable
444 for _ in 0..page_count.data() { in map_count()