Searched refs:first_data_range (Results 1 – 4 of 4) sorted by relevance
/external/crosvm/swap/src/ |
D | present_list.rs | 98 pub fn first_data_range(&mut self, max_pages: usize) -> Option<Range<usize>> { in first_data_range() method 249 fn first_data_range() { in first_data_range() function 258 assert_eq!(list.first_data_range(200).unwrap(), 1..3); in first_data_range() 260 assert_eq!(list.first_data_range(200).unwrap(), 12..13); in first_data_range() 262 assert_eq!(list.first_data_range(200).unwrap(), 20..30); in first_data_range() 264 assert!(list.first_data_range(200).is_none()); in first_data_range() 274 assert_eq!(list.first_data_range(200).unwrap(), 10..20); in first_data_range_clear_partially() 276 assert_eq!(list.first_data_range(200).unwrap(), 12..20); in first_data_range_clear_partially() 278 assert_eq!(list.first_data_range(200).unwrap(), 12..19); in first_data_range_clear_partially() 280 assert_eq!(list.first_data_range(200).unwrap(), 12..16); in first_data_range_clear_partially() [all …]
|
D | staging.rs | 191 pub fn first_data_range(&mut self, max_pages: usize) -> Option<Range<usize>> { in first_data_range() method 192 self.present_list.first_data_range(max_pages) in first_data_range() 335 fn first_data_range() { in first_data_range() function 346 assert_eq!(staging_memory.first_data_range(200).unwrap(), 1..4); in first_data_range() 347 assert_eq!(staging_memory.first_data_range(2).unwrap(), 1..3); in first_data_range() 349 assert_eq!(staging_memory.first_data_range(2).unwrap(), 3..4); in first_data_range() 351 assert!(staging_memory.first_data_range(2).is_none()); in first_data_range()
|
D | file.rs | 308 pub fn first_data_range(&mut self, max_pages: usize) -> Option<Range<usize>> { in first_data_range() method 309 self.present_list.first_data_range(max_pages) in first_data_range() 627 fn first_data_range() { in first_data_range() function 636 assert_eq!(swap_file.first_data_range(200).unwrap(), 1..4); in first_data_range() 637 assert_eq!(swap_file.first_data_range(2).unwrap(), 1..3); in first_data_range() 639 assert_eq!(swap_file.first_data_range(2).unwrap(), 3..4); in first_data_range() 641 assert!(swap_file.first_data_range(2).is_none()); in first_data_range()
|
D | page_handler.rs | 549 if let Some(idx_range) = region.staging_memory.first_data_range(max_pages) { in swap_out() 709 if let Some(idx_range) = region.staging_memory.first_data_range(max_pages) { in swap_in() 725 if let Some(idx_range) = region.file.first_data_range(max_pages) { in swap_in()
|