Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/driver/pci/
Dpci_irq.rs11 use super::pci::{PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError};
224 fn irq_enable(&mut self, enable: bool) -> Result<u8, PciError> { in irq_enable() argument
234 return Err(PciError::PciIrqError(PciIrqError::IrqTypeNotSupported)); in irq_enable()
237 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in irq_enable()
241 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in irq_enable()
246 fn msix_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msix_enable() argument
265 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in msix_enable()
268 return Err(PciError::PciIrqError(PciIrqError::IrqTypeUnmatch)); in msix_enable()
272 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in msix_enable()
277 fn msi_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msi_enable() argument
[all …]
Dpci.rs241 pub enum PciError { enum
254 impl Display for PciError { implementation
341 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> { in bar_ioremap() argument
450 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> { in bar_ioremap() argument
622 pub fn new(segment_group_number: SegmentGroupNumber) -> Result<Self, PciError> { in new() argument
629 fn map(&mut self) -> Result<u8, PciError> { in map() argument
638 .map_err(|_| PciError::CreateMmioError)?; in map()
730 ) -> Result<Box<dyn PciDeviceStructure>, PciError> { in pci_read_header() argument
752 return Err(PciError::GetWrongHeader); in pci_read_header()
798 HeaderType::Unrecognised(_) => Err(PciError::UnrecognisedHeaderType), in pci_read_header()
[all …]
/DragonOS-0.1.9/kernel/src/arch/x86_64/pci/
Dpci.rs4 BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber, PORT_PCI_CONFIG_ADDRESS,
46 fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError> { in ecam_root() argument
51 .map_err(|_| PciError::McfgTableNotFound)?; in ecam_root()
63 return Err(PciError::SegmentNotFound); in ecam_root()
/DragonOS-0.1.9/kernel/src/arch/riscv64/pci/
Dmod.rs3 driver::pci::pci::{BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber},
20 fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError> { in ecam_root() argument
/DragonOS-0.1.9/kernel/src/arch/
Dmod.rs2 driver::pci::pci::{BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber},
37 fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError>; in ecam_root() argument
/DragonOS-0.1.9/kernel/src/driver/virtio/
Dtransport_pci.rs5 BusDeviceFunction, PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError,
460 Pci(PciError),
504 impl From<PciError> for VirtioPciError {
505 fn from(error: PciError) -> Self { in from()
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/
De1000e.rs18 get_pci_device_structure_mut, PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError,
805 Pci(PciError),
809 impl From<PciError> for E1000EPciError {
810 fn from(error: PciError) -> Self { in from()