Lines Matching refs:Some
138 if let Some(offset) = self.fdt.next_property_offset(self.offset)? { in next_property()
139 Ok(Some(Self::new(self.fdt, offset)?)) in next_property()
175 if let Some(cells) = self.getprop_cells(cstr!("reg"))? { in reg()
181 Ok(Some(RegIterator::new(cells, addr_cells, size_cells))) in reg()
189 if let Some(cells) = self.getprop_cells(cstr!("ranges"))? { in ranges()
194 Ok(Some(RangesIterator::<A, P, S>::new( in ranges()
213 if let Some(bytes) = self.getprop(name)? { in getprop_str()
214 Ok(Some(CStr::from_bytes_with_nul(bytes).map_err(|_| FdtError::BadValue)?)) in getprop_str()
222 if let Some(cells) = self.getprop(name)? { in getprop_cells()
223 Ok(Some(CellIterator::new(cells))) in getprop_cells()
231 if let Some(bytes) = self.getprop(name)? { in getprop_u32()
232 Ok(Some(u32::from_be_bytes(bytes.try_into().map_err(|_| FdtError::BadValue)?))) in getprop_u32()
240 if let Some(bytes) = self.getprop(name)? { in getprop_u64()
241 Ok(Some(u64::from_be_bytes(bytes.try_into().map_err(|_| FdtError::BadValue)?))) in getprop_u64()
300 if let Some((offset, depth)) = self.fdt.next_node(self.offset, depth)? { in next_node()
301 Ok(Some((Self { fdt: self.fdt, offset }, depth))) in next_node()
313 if let Some(offset) = self.fdt.first_property_offset(self.offset)? { in first_property()
314 Ok(Some(FdtProperty::new(self.fdt, offset)?)) in first_property()
323 if let Some(prop) = self.getprop_u32(cstr!("phandle"))? { in get_phandle()
324 Ok(Some(prop.try_into()?)) in get_phandle()
325 } else if let Some(prop) = self.getprop_u32(cstr!("linux,phandle"))? { in get_phandle()
326 Ok(Some(prop.try_into()?)) in get_phandle()
515 if let Some((offset, depth)) = next_node { in delete_and_next_node()
516 let next_node = self.delete_and_next(Some(offset))?.unwrap(); in delete_and_next_node()
517 Ok(Some((next_node, depth))) in delete_and_next_node()
554 if Some(self.offset) == next_offset { in delete_and_next()
655 if let Some(len) = zeroed_len { in clone_from()
697 if node.device_type()? != Some(cstr!("memory")) { in memory()
782 while let Some((offset, next_depth)) = iter { in next_node_skip_subnodes()
784 return Ok(Some((offset, next_depth))); in next_node_skip_subnodes()