Searched refs:PciError (Results 1 – 4 of 4) sorted by relevance
33 pub enum PciError { enum63 impl Display for PciError { implementation104 pub fn from_fdt(fdt: &Fdt) -> Result<Self, PciError> { in from_fdt() argument129 fn pci_node(fdt: &Fdt) -> Result<FdtNode, PciError> { in pci_node() argument131 .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() argument140 .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 …]
49 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 …]
37 pub enum PciError { enum46 impl fmt::Display for PciError { implementation67 pub fn initialize(pci_info: PciInfo, memory: &mut MemoryTracker) -> Result<PciRoot, PciError> { in initialize() argument68 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()
20 use fdtpci::PciError;39 InvalidPci(PciError),43 PciInitializationFailed(pci::PciError),104 impl From<PciError> for Error {105 fn from(e: PciError) -> Self { in from()