Home
last modified time | relevance | path

Searched refs:Phandle (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Virtualization/libs/libfdt/tests/
Dapi_test.rs21 use libfdt::{Fdt, FdtError, FdtNodeMut, Phandle};
148 u32::from(Phandle::MIN), in phandle_new()
149 u32::from(Phandle::MIN).checked_add(1).unwrap(), in phandle_new()
151 u32::from(Phandle::MAX).checked_sub(1).unwrap(), in phandle_new()
152 u32::from(Phandle::MAX), in phandle_new()
156 let phandle = Phandle::new(value).unwrap(); in phandle_new()
163 u32::from(Phandle::MIN).checked_sub(1).unwrap(), in phandle_new()
164 u32::from(Phandle::MAX).checked_add(1).unwrap(), in phandle_new()
168 assert_eq!(Phandle::new(value), None); in phandle_new()
169 assert_eq!(Phandle::try_from(value), Err(FdtError::BadPhandle)); in phandle_new()
[all …]
/packages/modules/Virtualization/libs/libfdt/src/
Dsafe_types.rs86 pub struct Phandle(u32); struct
88 impl Phandle { implementation
104 impl From<Phandle> for u32 {
105 fn from(phandle: Phandle) -> u32 { in from()
110 impl TryFrom<u32> for Phandle { implementation
118 impl TryFrom<FdtRawResult> for Phandle { implementation
Dlib.rs30 pub use safe_types::{FdtHeader, NodeOffset, Phandle, PropOffset, StringOffset};
321 pub fn get_phandle(&self) -> Result<Option<Phandle>> { in get_phandle() argument
746 pub fn max_phandle(&self) -> Result<Phandle> { in max_phandle() argument
751 pub fn node_with_phandle(&self, phandle: Phandle) -> Result<Option<FdtNode>> { in node_with_phandle()
758 pub fn node_mut_with_phandle(&mut self, phandle: Phandle) -> Result<Option<FdtNodeMut>> { in node_mut_with_phandle()
Dlibfdt.rs26 use crate::{FdtError, NodeOffset, Phandle, PropOffset, Result, StringOffset};
84 fn node_offset_by_phandle(&self, phandle: Phandle) -> Result<Option<NodeOffset>> { in node_offset_by_phandle()
290 fn find_max_phandle(&self) -> Result<Phandle> { in find_max_phandle() argument
/packages/modules/Virtualization/pvmfw/src/
Ddevice_assignment.rs31 use libfdt::{Fdt, FdtError, FdtNode, FdtNodeMut, Phandle, Reg};
341 fn parse_physical_iommus(physical_node: &FdtNode) -> Result<BTreeMap<Phandle, PhysIommu>> { in parse_physical_iommus() argument
358 fn validate_physical_iommus(phys_iommus: &BTreeMap<Phandle, PhysIommu>) -> Result<()> { in validate_physical_iommus() argument
367 physical_devices: &BTreeMap<Phandle, PhysicalDeviceInfo>, in validate_physical_devices() argument
385 phys_iommus: &BTreeMap<Phandle, PhysIommu>, in parse_physical_devices_with_iommus() argument
386 ) -> Result<BTreeMap<Phandle, PhysicalDeviceInfo>> { in parse_physical_devices_with_iommus() argument
401 fn parse_physical_devices(&self) -> Result<BTreeMap<Phandle, PhysicalDeviceInfo>> { in parse_physical_devices() argument
421 fn collect_overlayable_nodes_with_phandle(&self) -> Result<BTreeMap<Phandle, DtPathTokens>> { in collect_overlayable_nodes_with_phandle() argument
440 ) -> Result<BTreeMap<DtPathTokens, Vec<Phandle>>> { in collect_phandle_references_from_overlayable_nodes() argument
486 let phandle: Phandle = U32::ref_from(phandle_value) in collect_phandle_references_from_overlayable_nodes()
[all …]
Dfdt.rs41 use libfdt::Phandle;
236 fn read_cpu_map_from(fdt: &Fdt) -> libfdt::Result<Option<BTreeMap<Phandle, (usize, usize)>>> { in read_cpu_map_from() argument