Home
last modified time | relevance | path

Searched refs:from_data (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs384 let mut map = [unsafe { EntryFlags::from_data(0) }; 16];
386 map[VmFlags::VM_NONE.bits()] = EntryFlags::from_data(MMArch::PAGE_NONE);
387 map[VmFlags::VM_READ.bits()] = EntryFlags::from_data(MMArch::PAGE_READONLY);
388 map[VmFlags::VM_WRITE.bits()] = EntryFlags::from_data(MMArch::PAGE_COPY);
390 EntryFlags::from_data(MMArch::PAGE_COPY);
391 map[VmFlags::VM_EXEC.bits()] = EntryFlags::from_data(MMArch::PAGE_READONLY_EXEC);
393 EntryFlags::from_data(MMArch::PAGE_READONLY_EXEC);
395 EntryFlags::from_data(MMArch::PAGE_COPY_EXEC);
397 EntryFlags::from_data(MMArch::PAGE_COPY_EXEC);
398 map[VmFlags::VM_SHARED.bits()] = EntryFlags::from_data(MMArch::PAGE_NONE);
[all …]
/DragonOS/kernel/src/driver/block/cache/
H A Dcache_block.rs35 pub fn from_data(lba_id: BlockId, data: Vec<u8>) -> Self { in from_data() method
H A Dcached_block_device.rs278 let data_block = CacheBlock::from_data(lba_id, data); in insert()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs314 let mut ret = [unsafe { EntryFlags::from_data(0) }; 16];
317 ret[index] = unsafe { EntryFlags::from_data(map[index]) };
340 EntryFlags::from_data(RiscV64MMArch::ENTRY_FLAG_DEFAULT_PAGE) in kernel_page_flags()
/DragonOS/kernel/src/mm/
H A Dpage.rs738 unsafe { EntryFlags::from_data(self.data & Arch::ENTRY_FLAGS_MASK) } in flags()
786 Self::from_data( in new()
827 pub const unsafe fn from_data(data: usize) -> Self { in from_data() method
847 Self::from_data(Arch::ENTRY_FLAG_DEFAULT_TABLE | Arch::ENTRY_FLAG_READWRITE) in new_page_table()
853 Self::from_data(Arch::ENTRY_FLAG_DEFAULT_TABLE) in new_page_table()
H A Dfault.rs217 entry.set_flags(EntryFlags::from_data(MMArch::ENTRY_FLAG_DIRTY)); in handle_pte_fault()