/bootable/libbootloader/gbl/libabr/src/ |
D | utils.rs | 20 pub extern "C" fn AbrBigEndianToHost(val: u32) -> u32 { in AbrBigEndianToHost() 21 u32::from_be(val) in AbrBigEndianToHost() 27 pub extern "C" fn AbrHostToBigEndian(val: u32) -> u32 { in AbrHostToBigEndian() 28 val.to_be() in AbrHostToBigEndian()
|
D | c_staticlib.rs | 154 fn unpack_result<T: Into<O>, O>(res: AbrResult<T>, val: &mut O) -> c_uint { in unpack_result() 164 *val = v.into(); in unpack_result() 319 fn from(val: abr::SlotInfo) -> Self { in from() 320 let is_marked_successful = matches!(val.state, SlotState::Successful); in from() 321 let num_tries_remaining = match val.state { in from() 327 is_active: val.is_active, in from()
|
D | lib.rs | 45 fn from(val: Option<&'static str>) -> Self { in from() 46 Error::OpsError(val) in from() 108 fn try_from(val: c_uint) -> core::result::Result<SlotIndex, Self::Error> { in try_from() 109 match val { in try_from() 635 fn reverse_u32(val: u32) -> u32 { in reverse_u32() 636 let mut bytes = val.to_le_bytes(); in reverse_u32()
|
/bootable/libbootloader/gbl/libgbl/tests/ |
D | integration_tests.rs | 79 val: T, field 84 fn new(val: T) -> Self in new() 88 Self { used: false, val: val } in new() 94 &mut self.val in get()
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | sparse.rs | 211 fn get(&mut self, val: u32, size: u64) -> Result<&mut [u8], CommandError> { in get() 214 if Some(val) != self.curr_val { in get() 216 self.curr_val = Some(val); in get() 220 Ref::<_, [FillUnit]>::new_slice(to_fill).unwrap().into_mut_slice().fill(FillUnit(val)); in get() 252 fn to_usize<T: TryInto<usize>>(val: T) -> Result<usize, CommandError> { in to_usize() 253 Ok(val.try_into().map_err(|_| ERR_ARITHMETIC_OVERFLOW)?) in to_usize() 262 fn to_u64<T: TryInto<u64>>(val: T) -> Result<u64, CommandError> { in to_u64() 263 Ok(val.try_into().map_err(|_| ERR_ARITHMETIC_OVERFLOW)?) in to_u64() 315 fn copy_to<T: AsBytes + FromBytes>(val: &T, bytes: &mut [u8]) { in copy_to() 316 bytes[..size_of::<T>()].clone_from_slice(val.as_bytes()); in copy_to()
|
D | vars.rs | 142 let val = match val_type { in get() localVariable 147 Some(snprintf!(out, "{:#x}", val).len()) in get() 158 let mut val = [0u8; 32]; in get_all() localVariable 164 f(BLOCK_DEVICE, &[id, "total-blocks"], snprintf!(val, "{:#x}", blk.num_blocks()?))?; in get_all() 165 f(BLOCK_DEVICE, &[id, "block-size"], snprintf!(val, "{:#x}", blk.block_size()?)) in get_all()
|
D | mod.rs | 251 fn to_usize(val: u64) -> Result<usize, CommandError> { in to_usize() 252 val.try_into().map_err(|_| "Overflow".into()) in to_usize() 330 &mut |name, args, val| { in test_get_var_all() 331 out.push(format!("{}:{}: {}", name, args.join(":"), val)); in test_get_var_all()
|
/bootable/libbootloader/gbl/libsafemath/src/ |
D | lib.rs | 156 Ok(val) => write!(f, "{}", val), in fmt() 203 fn try_from(val: SafeNum) -> Result<Self, Self::Error> { 204 Self::try_from(val.0?).map_err(|_| Location::caller()) 213 fn from(val: $from_type) -> SafeNum { 214 Self(Ok(val.into())) 226 fn from(val: $from_type) -> Self { 227 Self(Primitive::try_from(val).map_err(|_| Location::caller()))
|
/bootable/deprecated-ota/edify/ |
D | expr.cpp | 140 std::string val; in SleepFn() local 141 if (!Evaluate(state, argv[0], &val)) { in SleepFn() 146 if (!android::base::ParseInt(val.c_str(), &v, 0)) { in SleepFn() 151 return StringValue(val); in SleepFn() 193 std::string val; in LogicalNotFn() local 194 if (!Evaluate(state, argv[0], &val)) { in LogicalNotFn() 198 return StringValue(BooleanString(val) ? "" : "t"); in LogicalNotFn()
|
D | lexer.ll | 71 int val; 72 sscanf(yytext+2, "%x", &val); 73 string_buffer.push_back(static_cast<char>(val));
|
/bootable/libbootloader/gbl/libgbl/src/ |
D | slots.rs | 104 fn from(val: Suffix) -> Self { in from() 106 let _ = val.0.encode_utf8(&mut buffer); in from() 137 fn from(val: u8) -> Self { in from() 138 match val { in from()
|
/bootable/libbootloader/gbl/libavb/src/ |
D | lib.rs | 87 let val = unsafe { &mut *dividend }; in avb_div_by_10() localVariable 88 let rem = *val % 10; in avb_div_by_10() 89 *val /= 10; in avb_div_by_10()
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | android.rs | 54 fn set_field<N, R>(base: N, val: R, offset: N, mask: N) -> N in set_field() 59 (base & !(mask << offset)) | ((val.into() & mask) << offset) in set_field() 126 let mut val = Self(0); in default() localVariable 127 val.set_priority(DEFAULT_PRIORITY); in default() 128 val.set_tries(DEFAULT_RETRIES); in default() 130 val in default()
|
/bootable/libbootloader/gbl/efi/src/ |
D | fuchsia_boot.rs | 142 if let Some(val) = custom_zbi { in load_fuchsia_simple() 143 zbi.extend(&val)?; in load_fuchsia_simple()
|
D | utils.rs | 39 pub fn to_usize<T: TryInto<usize>>(val: T) -> Result<usize> { in to_usize() 40 Ok(val.try_into().map_err(|_| EfiAppError::ArithmeticOverflow)?) in to_usize()
|
/bootable/libbootloader/gbl/libbootconfig/src/ |
D | lib.rs | 136 for val in &bytes[..bytes.len().checked_sub(BOOTCONFIG_TRAILER_SIZE).unwrap()] { in fmt() 137 write!(f, "{}", core::ascii::escape_default(*val))?; in fmt()
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | non_blocking.rs | 185 fn from(val: &'a mut dyn BlockIo) -> Self { in from() 186 Self::Blocking(val) in from() 191 fn from(val: &'a mut dyn NonBlockingBlockIo) -> Self { in from() 192 Self::NonBlocking(val) in from()
|
D | lib.rs | 153 fn from(val: BlockIoError) -> Self { in from() 154 Self::BlockIoError(val) in from()
|
/bootable/libbootloader/gbl/libfdt/src/ |
D | lib.rs | 244 pub fn set_property(&mut self, path: &str, name: &CStr, val: &[u8]) -> Result<()> { in set_property() 252 val.as_ptr() as *const _, in set_property() 253 val.len().try_into().map_err(|_| FdtError::IntegerOverflow)?, in set_property()
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 193 fn from(val: T) -> Self { in from() 195 write!(res.0, "{}", val).unwrap(); in from() 739 let mut val = [0u8; MAX_RESPONSE_SIZE]; in get_var() localVariable 740 match self.get_var_str(var, args, &mut val[..], transport, fb_impl) { in get_var() 782 let get_res = self.get_var_all_with_native(fb_impl, &mut |name, args, val| { in get_var_all() 786 write!(formatted_bytes, ": {}", val).unwrap(); in get_var_all()
|
/bootable/libbootloader/gbl/libefi/defs/ |
D | boot_service.h | 124 void (*set_mem)(void* buf, size_t len, uint8_t val);
|
/bootable/libbootloader/gbl/third_party/libzbi/src/ |
D | lib.rs | 940 fn from(val: ZbiType) -> Self { in from() 941 val as u32 in from() 947 fn try_from(val: u32) -> Result<Self, Self::Error> { in try_from() 948 match val { in try_from() 1265 pub fn padding(mut self, val: u8, bytes: usize) -> Self { in padding() 1266 self.buffer[self.tail_offset..self.tail_offset + bytes].fill(val); in padding()
|
/bootable/libbootloader/gbl/libefi/src/ |
D | lib.rs | 1029 fn as_efi_handle<T>(val: &mut T) -> EfiHandle { in as_efi_handle() 1030 val as *mut T as *mut _ in as_efi_handle()
|