Lines Matching refs:index
173 index: usize, in do_insert_area()
178 let copy_elements = inner.initial_memory_regions_num - index; in do_insert_area()
181 .copy_within(index..index + copy_elements, index + 1); in do_insert_area()
182 inner.initial_memory_regions[index] = PhysMemoryArea::new(base, size, flags); in do_insert_area()
249 fn do_remove_region(&self, inner: &mut SpinLockGuard<'_, InnerMemBlockManager>, index: usize) { in do_remove_region()
250 let copy_elements = inner.initial_memory_regions_num - index - 1; in do_remove_region()
253 .copy_within(index + 1..index + 1 + copy_elements, index); in do_remove_region()
441 index: 0, in to_iter()
451 index: 0, in to_iter_available()
463 pub fn get_initial_memory_region(&self, index: usize) -> Option<PhysMemoryArea> { in get_initial_memory_region()
465 return inner.initial_memory_regions.get(index).copied(); in get_initial_memory_region()
471 index: usize, field
483 pub fn get_area(&self, index: usize) -> &PhysMemoryArea { in get_area()
484 &self.inner.initial_memory_regions[index] in get_area()
489 self.index in current_index()
497 while self.index < self.inner.initial_memory_regions_num { in next()
499 && !self.inner.initial_memory_regions[self.index] in next()
503 self.index += 1; in next()
504 if self.index >= self.inner.initial_memory_regions_num { in next()
511 if self.index >= self.inner.initial_memory_regions_num { in next()
514 let ret = self.inner.initial_memory_regions[self.index]; in next()
515 self.index += 1; in next()