Lines Matching refs:PciError

236 pub enum PciError {  enum
247 impl Display for PciError { implementation
324 fn bar_init(&mut self) -> Option<Result<u8, PciError>> { in bar_init() argument
328 fn msix_init(&mut self) -> Option<Result<u8, PciError>> { in msix_init() argument
405 fn bar_init(&mut self) -> Option<Result<u8, PciError>> { in bar_init() argument
537 pub fn new(segment_group_number: SegmentGroupNumber) -> Result<Self, PciError> { in new() argument
544 fn map(&mut self) -> Result<u8, PciError> { in map() argument
559 return Err(PciError::CreateMmioError); in map()
650 ) -> Result<Box<dyn PciDeviceStructure>, PciError> { in pci_read_header() argument
672 return Err(PciError::GetWrongHeader); in pci_read_header()
722 HeaderType::Unrecognised(_) => Err(PciError::UnrecognisedHeaderType), in pci_read_header()
923 fn pci_check_all_buses() -> Result<u8, PciError> { in pci_check_all_buses()
942 fn pci_check_function(busdevicefunction: BusDeviceFunction) -> Result<u8, PciError> { in pci_check_function() argument
946 Err(PciError::GetWrongHeader) => { in pci_check_function()
959 .ok_or(PciError::PciDeviceStructureTransformError)?; in pci_check_function()
968 fn pci_check_device(bus: u8, device: u8) -> Result<u8, PciError> { in pci_check_device() argument
977 Err(PciError::GetWrongHeader) => { in pci_check_device()
1007 fn pci_check_bus(bus: u8) -> Result<u8, PciError> { in pci_check_bus() argument
1137 type Error = PciError;
1143 _ => Err(PciError::InvalidBarType), in try_from()
1239 pub fn get_bar(&self, bar_index: u8) -> Result<&BarInfo, PciError> { in get_bar() argument
1247 _ => Err(PciError::InvalidBarType), in get_bar()
1280 ) -> Result<PciStandardDeviceBar, PciError> { in pci_bar_init() argument
1316 return Err(PciError::InvalidBarType); in pci_bar_init()
1338 return Err(PciError::CreateMmioError); in pci_bar_init()