Lines Matching refs:FdtError
29 pub use result::{FdtError, Result};
49 type Error = FdtError;
56 _ => Err(FdtError::BadNCells), in try_from()
70 type Error = FdtError;
77 _ => Err(FdtError::BadNCells), in try_from()
208 CStr::from_bytes_with_nul(name).map_err(|_| FdtError::Internal) in name()
214 Ok(Some(CStr::from_bytes_with_nul(bytes).map_err(|_| FdtError::BadValue)?)) in getprop_str()
232 Ok(Some(u32::from_be_bytes(bytes.try_into().map_err(|_| FdtError::BadValue)?))) in getprop_u32()
241 Ok(Some(u64::from_be_bytes(bytes.try_into().map_err(|_| FdtError::BadValue)?))) in getprop_u64()
266 self.reg()?.ok_or(FdtError::NotFound)?.next().ok_or(FdtError::NotFound) in first_reg()
416 let prop = self.as_node().getprop(name)?.ok_or(FdtError::NotFound)?; in trimprop()
420 x if x < new_size => Err(FdtError::NoSpace), in trimprop()
555 return Err(FdtError::Internal); in delete_and_next()
648 return Err(FdtError::NoSpace); in clone_from()
696 let node = self.root().subnode(cstr!("memory"))?.ok_or(FdtError::NotFound)?; in memory()
698 return Err(FdtError::BadValue); in memory()
700 node.reg()?.ok_or(FdtError::BadValue).map(MemRegIterator::new) in memory()
705 self.memory()?.next().ok_or(FdtError::NotFound) in first_memory_range()
798 get_slice_at_ptr(self.as_fdt_slice(), ptr.cast(), len).ok_or(FdtError::Internal) in get_from_ptr()