Searched refs:PciError (Results 1 – 7 of 7) sorted by relevance
/DragonOS/kernel/src/driver/pci/ |
H A D | pci_irq.rs | 12 use super::pci::{PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError}; 229 fn irq_enable(&self, enable: bool) -> Result<u8, PciError> { in irq_enable() argument 239 return Err(PciError::PciIrqError(PciIrqError::IrqTypeNotSupported)); in irq_enable() 242 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in irq_enable() 246 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in irq_enable() 251 fn msix_enable(&self, enable: bool) -> Result<u8, PciError> { in msix_enable() argument 270 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in msix_enable() 273 return Err(PciError::PciIrqError(PciIrqError::IrqTypeUnmatch)); in msix_enable() 277 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in msix_enable() 282 fn msi_enable(&self, enable: bool) -> Result<u8, PciError> { in msi_enable() argument [all …]
|
H A D | pci.rs | 282 pub enum PciError { enum 295 impl Display for PciError { implementation 375 fn bar_ioremap(&self) -> Option<Result<u8, PciError>> { in bar_ioremap() argument 481 fn bar_ioremap(&self) -> Option<Result<u8, PciError>> { in bar_ioremap() argument 675 ) -> Result<Arc<dyn PciDeviceStructure>, PciError> { in pci_read_header() argument 697 return Err(PciError::GetWrongHeader); in pci_read_header() 750 HeaderType::Unrecognised(_) => Err(PciError::UnrecognisedHeaderType), in pci_read_header() 957 fn pci_check_all_buses() -> Result<u8, PciError> { in pci_check_all_buses() 976 fn pci_check_function(busdevicefunction: BusDeviceFunction) -> Result<u8, PciError> { in pci_check_function() argument 980 Err(PciError::GetWrongHeader) => { in pci_check_function() [all …]
|
H A D | root.rs | 17 pci::{BusDeviceFunction, ExternalCapabilityIterator, PciCam, PciError, SegmentGroupNumber}, 82 ) -> Result<Arc<Self>, PciError> { in new() argument 100 fn map(&mut self) -> Result<u8, PciError> { in map() argument 109 .map_err(|_| PciError::CreateMmioError)?; in map()
|
/DragonOS/kernel/src/arch/x86_64/pci/ |
H A D | pci.rs | 6 pci_init, BusDeviceFunction, PciAddr, PciCam, PciError, PORT_PCI_CONFIG_ADDRESS, 102 fn discover_ecam_root() -> Result<(), PciError> { in discover_ecam_root() 107 .map_err(|_| PciError::McfgTableNotFound)?; in discover_ecam_root()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport.rs | 9 pci::{PciDeviceStructure, PciError}, 34 pub fn setup_irq(&self, dev_id: Arc<DeviceId>) -> Result<(), PciError> { in setup_irq() argument 39 .ok_or(PciError::PciIrqError(PciIrqError::IrqNotInited))?; in setup_irq()
|
H A D | transport_pci.rs | 5 BusDeviceFunction, PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError, 462 Pci(PciError), 506 impl From<PciError> for VirtioPciError { 507 fn from(error: PciError) -> Self { in from()
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e.rs | 9 get_pci_device_structure_mut, PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError, 804 Pci(PciError), 808 impl From<PciError> for E1000EPciError { 809 fn from(error: PciError) -> Self { in from()
|