Lines Matching refs:Ok
53 x if x == Self::Single as _ => Ok(Self::Single), in try_from()
54 x if x == Self::Double as _ => Ok(Self::Double), in try_from()
55 x if x == Self::Triple as _ => Ok(Self::Triple), in try_from()
74 x if x == Self::None as _ => Ok(Self::None), in try_from()
75 x if x == Self::Single as _ => Ok(Self::Single), in try_from()
76 x if x == Self::Double as _ => Ok(Self::Double), in try_from()
97 Ok(fdt.get_property_by_offset(offset)?.as_ref()) in from_offset()
124 Ok(Self { fdt, offset, property }) in new()
139 Ok(Some(Self::new(self.fdt, offset)?)) in next_property()
141 Ok(None) in next_property()
158 Ok(Self { fdt: self.fdt, offset }) in parent()
165 Ok(Self { fdt: self.fdt, offset }) in supernode_at_depth()
181 Ok(Some(RegIterator::new(cells, addr_cells, size_cells))) in reg()
183 Ok(None) in reg()
194 Ok(Some(RangesIterator::<A, P, S>::new( in ranges()
201 Ok(None) in ranges()
214 Ok(Some(CStr::from_bytes_with_nul(bytes).map_err(|_| FdtError::BadValue)?)) in getprop_str()
216 Ok(None) in getprop_str()
223 Ok(Some(CellIterator::new(cells))) in getprop_cells()
225 Ok(None) in getprop_cells()
232 Ok(Some(u32::from_be_bytes(bytes.try_into().map_err(|_| FdtError::BadValue)?))) in getprop_u32()
234 Ok(None) in getprop_u32()
241 Ok(Some(u64::from_be_bytes(bytes.try_into().map_err(|_| FdtError::BadValue)?))) in getprop_u64()
243 Ok(None) in getprop_u64()
261 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in next_compatible()
285 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in first_subnode()
291 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in next_subnode()
301 Ok(Some((Self { fdt: self.fdt, offset }, depth))) in next_node()
303 Ok(None) in next_node()
314 Ok(Some(FdtProperty::new(self.fdt, offset)?)) in first_property()
316 Ok(None) in first_property()
324 Ok(Some(prop.try_into()?)) in get_phandle()
326 Ok(Some(prop.try_into()?)) in get_phandle()
328 Ok(None) in get_phandle()
337 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in subnode()
344 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in subnode_with_name_bytes()
419 x if x == new_size => Ok(()), in trimprop()
440 Ok(()) in add_subnodes()
448 Ok(Self { fdt: self.fdt, offset }) in add_subnode()
457 Ok(Self { fdt: self.fdt, offset }) in add_subnode_with_namelen()
464 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in first_subnode()
471 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in next_subnode()
490 Ok(next.map(|(offset, depth)| (Self { fdt: self.fdt, offset }, depth))) in next_node()
503 Ok(next.map(|(offset, depth)| (Self { fdt: self.fdt, offset }, depth))) in next_node_skip_subnodes()
517 Ok(Some((next_node, depth))) in delete_and_next_node()
520 Ok(None) in delete_and_next_node()
532 Ok(offset.map(|offset| Self { fdt: self.fdt, offset })) in next_compatible()
560 Ok(next_offset.map(|offset| Self { fdt: self.fdt, offset })) in delete_and_next()
601 Ok(fdt) in from_slice()
612 Ok(fdt) in from_mut_slice()
659 Ok(()) in clone_from()
688 Ok(self) in apply_overlay()
737 Ok(offset.map(|offset| FdtNode { fdt: self, offset })) in node()
754 Ok(offset.map(|offset| FdtNode { fdt: self, offset })) in node_with_phandle()
761 Ok(offset.map(|offset| FdtNodeMut { fdt: self, offset })) in node_mut_with_phandle()
773 Ok(offset.map(|offset| FdtNodeMut { fdt: self, offset })) in node_mut()
784 return Ok(Some((offset, next_depth))); in next_node_skip_subnodes()
789 Ok(None) in next_node_skip_subnodes()