Lines Matching refs:value
313 pub fn update_flags(mut self, flag: usize, value: bool) -> Self { in update_flags()
314 if value { in update_flags()
338 pub fn set_user(self, value: bool) -> Self { in set_user()
339 return self.update_flags(Arch::ENTRY_FLAG_USER, value); in set_user()
357 pub fn set_write(self, value: bool) -> Self { in set_write()
360 .update_flags(Arch::ENTRY_FLAG_READONLY, !value) in set_write()
361 .update_flags(Arch::ENTRY_FLAG_READWRITE, value); in set_write()
375 pub fn set_execute(self, mut value: bool) -> Self { in set_execute()
380 value = true; in set_execute()
386 .update_flags(Arch::ENTRY_FLAG_NO_EXEC, !value) in set_execute()
387 .update_flags(Arch::ENTRY_FLAG_EXEC, value); in set_execute()
404 pub fn set_page_cache_disable(self, value: bool) -> Self { in set_page_cache_disable()
405 return self.update_flags(Arch::ENTRY_FLAG_CACHE_DISABLE, value); in set_page_cache_disable()
424 pub fn set_page_write_through(self, value: bool) -> Self { in set_page_write_through()
425 return self.update_flags(Arch::ENTRY_FLAG_WRITE_THROUGH, value); in set_page_write_through()