Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 10 of 10) sorted by relevance

/bootable/recovery/otautil/
Drangeset.cpp159 size_t RangeSet::GetBlockNumber(size_t idx) const { in GetBlockNumber()
160 CHECK_LT(idx, blocks_) << "Out of bound index " << idx << " (total blocks: " << blocks_ << ")"; in GetBlockNumber()
163 if (idx < end - begin) { in GetBlockNumber()
164 return begin + idx; in GetBlockNumber()
166 idx -= (end - begin); in GetBlockNumber()
169 CHECK(false) << "Failed to find block number for index " << idx; in GetBlockNumber()
/bootable/libbootloader/gbl/libgbl/tests/
Dintegration_tests.rs56 for (idx, ele) in self.block_io.iter_mut().enumerate() { in visit_block_devices()
57 f(&mut ele.io, idx.try_into().unwrap(), ele.max_gpt_entries); in visit_block_devices()
/bootable/libbootloader/gbl/libgbl/src/slots/
Dandroid.rs303 let (idx, slot) = self in set_slot_unbootable()
312 let slot_data = &mut self.get_mut_data().slot_metadata[idx]; in set_slot_unbootable()
331 let (idx, slot) = self in mark_boot_attempt()
339 let metadata = &mut self.get_mut_data().slot_metadata[idx]; in mark_boot_attempt()
352 let idx = self in set_active_slot() localVariable
359 if i == idx { in set_active_slot()
Dfuchsia.rs195 let (idx, slot) = self.get_index_and_slot_with_suffix(slot_suffix)?; in set_slot_unbootable()
201 let slot_data = &mut abr_data.slot_data[idx]; in set_slot_unbootable()
225 let (idx, slot) = self.get_index_and_slot_with_suffix(target_slot.suffix)?; in mark_boot_attempt()
230 let abr_slot = &mut self.get_mut_data().slot_data[idx]; in mark_boot_attempt()
246 let (idx, _) = self.get_index_and_slot_with_suffix(slot_suffix)?; in set_active_slot()
250 if i == idx { in set_active_slot()
/bootable/recovery/otautil/include/otautil/
Drangeset.h47 size_t GetBlockNumber(size_t idx) const;
/bootable/libbootloader/gbl/efi/src/
Dutils.rs126 for (idx, ele) in self.0.iter_mut().enumerate() { in for_each()
127 f(ele, u64::try_from(idx).unwrap()); in for_each()
Dandroid_boot.rs396 for (idx, mem) in efi_mmap.into_iter().enumerate() { in android_boot_demo()
397 e820_entries[idx] = boot::x86::e820entry { in android_boot_demo()
/bootable/libbootloader/gbl/libstorage/src/
Dtestlib.rs549 .for_each(|(idx, ele)| f(ele, u64::try_from(idx).unwrap())); in for_each()
Dlib.rs287 idx: usize, field
299 .get(self.idx) in next()
305 self.idx += 1; in next()
414 PartitionIterator { dev: self, idx: 0 } in partition_iter()
Dgpt.rs375 Some(idx) => idx as u64, in load_and_sync()