Lines Matching refs:i
111 let mut i = 0; in do_add_block() localVariable
117 while i < inner.initial_memory_regions_num { in do_add_block()
118 let range_base = inner.initial_memory_regions[i].base; in do_add_block()
120 inner.initial_memory_regions[i].base + inner.initial_memory_regions[i].size; in do_add_block()
126 i += 1; in do_add_block()
136 start_index = i as isize; in do_add_block()
138 end_index = (i + 1) as isize; in do_add_block()
139 self.do_insert_area(inner, i, base, range_base - base, flags); in do_add_block()
140 i += 1; in do_add_block()
144 i += 1; in do_add_block()
152 start_index = i as isize; in do_add_block()
154 end_index = (i + 1) as isize; in do_add_block()
155 self.do_insert_area(inner, i, base, end - base, flags); in do_add_block()
191 let mut i = 0; in do_merge_blocks() localVariable
193 i = start_index - 1; in do_merge_blocks()
197 while i < end_index { in do_merge_blocks()
199 let next_base = inner.initial_memory_regions[(i + 1) as usize].base; in do_merge_blocks()
200 let next_size = inner.initial_memory_regions[(i + 1) as usize].size; in do_merge_blocks()
201 let next_flags = inner.initial_memory_regions[(i + 1) as usize].flags; in do_merge_blocks()
202 let this = &mut inner.initial_memory_regions[i as usize]; in do_merge_blocks()
208 i += 1; in do_merge_blocks()
214 let copy_elements = inner.initial_memory_regions_num - (i + 2) as usize; in do_merge_blocks()
216 (i + 2) as usize..(i as usize + 2 + copy_elements), in do_merge_blocks()
217 (i + 1) as usize, in do_merge_blocks()
242 for i in (start_index..end_index).rev() { in remove_block()
243 self.do_remove_region(&mut inner, i); in remove_block()
368 for i in start_index..end_index { in set_or_clear_flags()
370 inner.initial_memory_regions[i].flags |= flags; in set_or_clear_flags()
372 inner.initial_memory_regions[i].flags &= !flags; in set_or_clear_flags()
406 for i in 0..inner.initial_memory_regions_num { in do_is_overlapped()
408 && !inner.initial_memory_regions[i] in do_is_overlapped()
416 let range_base = inner.initial_memory_regions[i].base; in do_is_overlapped()
417 let range_end = range_base + inner.initial_memory_regions[i].size; in do_is_overlapped()