Home
last modified time | relevance | path

Searched refs:PciError (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Virtualization/libs/fdtpci/src/
Dlib.rs33 pub enum PciError { enum
63 impl Display for PciError { implementation
104 pub fn from_fdt(fdt: &Fdt) -> Result<Self, PciError> { in from_fdt() argument
129 fn pci_node(fdt: &Fdt) -> Result<FdtNode, PciError> { in pci_node() argument
131 .map_err(PciError::FdtErrorPci)? in pci_node()
133 .ok_or(PciError::FdtNoPci) in pci_node()
137 fn parse_cam_range(pci_node: &FdtNode) -> Result<Range<usize>, PciError> { in parse_cam_range() argument
140 .map_err(PciError::FdtErrorReg)? in parse_cam_range()
141 .ok_or(PciError::FdtMissingReg)? in parse_cam_range()
143 .ok_or(PciError::FdtRegEmpty)?; in parse_cam_range()
[all …]
/packages/modules/Virtualization/pvmfw/src/
Dmain.rs49 use fdtpci::{PciError, PciInfo};
327 fn handle_pci_error(e: PciError) -> RebootReason { in handle_pci_error()
330 PciError::FdtErrorPci(_) in handle_pci_error()
331 | PciError::FdtNoPci in handle_pci_error()
332 | PciError::FdtErrorReg(_) in handle_pci_error()
333 | PciError::FdtMissingReg in handle_pci_error()
334 | PciError::FdtRegEmpty in handle_pci_error()
335 | PciError::FdtRegMissingSize in handle_pci_error()
336 | PciError::CamWrongSize(_) in handle_pci_error()
337 | PciError::FdtErrorRanges(_) in handle_pci_error()
[all …]
/packages/modules/Virtualization/vmbase/src/virtio/
Dpci.rs37 pub enum PciError { enum
46 impl fmt::Display for PciError { implementation
67 pub fn initialize(pci_info: PciInfo, memory: &mut MemoryTracker) -> Result<PciRoot, PciError> { in initialize() argument
68 PCI_INFO.set(Box::new(pci_info.clone())).map_err(|_| PciError::DuplicateInitialization)?; in initialize()
70 memory.map_mmio_range(pci_info.cam_range.clone()).map_err(PciError::CamMapFailed)?; in initialize()
72 memory.map_mmio_range(bar_range).map_err(PciError::BarMapFailed)?; in initialize()
/packages/modules/Virtualization/rialto/src/
Derror.rs20 use fdtpci::PciError;
39 InvalidPci(PciError),
43 PciInitializationFailed(pci::PciError),
104 impl From<PciError> for Error {
105 fn from(e: PciError) -> Self { in from()