Searched refs:from_data (Results 1 – 6 of 6) sorted by relevance
384 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 …]
35 pub fn from_data(lba_id: BlockId, data: Vec<u8>) -> Self { in from_data() method
278 let data_block = CacheBlock::from_data(lba_id, data); in insert()
314 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()
738 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() method847 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()
217 entry.set_flags(EntryFlags::from_data(MMArch::ENTRY_FLAG_DIRTY)); in handle_pte_fault()