Lines Matching refs:Option
71 fn path_offset_namelen(&self, path: &[u8]) -> Result<Option<NodeOffset>> { in path_offset_namelen()
84 fn node_offset_by_phandle(&self, phandle: Phandle) -> Result<Option<NodeOffset>> { in node_offset_by_phandle()
98 ) -> Result<Option<NodeOffset>> { in node_offset_by_compatible()
109 fn next_node(&self, node: NodeOffset, depth: usize) -> Result<Option<(NodeOffset, usize)>> { in next_node()
158 ) -> Result<Option<NodeOffset>> { in subnode_offset_namelen()
169 fn first_subnode(&self, node: NodeOffset) -> Result<Option<NodeOffset>> { in first_subnode()
179 fn next_subnode(&self, node: NodeOffset) -> Result<Option<NodeOffset>> { in next_subnode()
222 fn getprop_namelen(&self, node: NodeOffset, name: &[u8]) -> Result<Option<&[u8]>> { in getprop_namelen()
270 fn first_property_offset(&self, node: NodeOffset) -> Result<Option<PropOffset>> { in first_property_offset()
280 fn next_property_offset(&self, prev: PropOffset) -> Result<Option<PropOffset>> { in next_property_offset()
516 pub(crate) fn get_slice_at_ptr(s: &[u8], p: *const u8, len: usize) -> Option<&[u8]> { in get_slice_at_ptr()
522 fn get_mut_slice_at_ptr(s: &mut [u8], p: *mut u8, len: usize) -> Option<&mut [u8]> { in get_mut_slice_at_ptr()
528 fn get_slice_from_ptr(s: &[u8], p: *const u8) -> Option<&[u8]> { in get_slice_from_ptr()
532 fn get_slice_ptr_offset(s: &[u8], p: *const u8) -> Option<usize> { in get_slice_ptr_offset()