Lines Matching defs:PciError
239 pub enum PciError {
252 impl Display for PciError {
339 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> {
448 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> {
620 pub fn new(segment_group_number: SegmentGroupNumber) -> Result<Self, PciError> {
627 fn map(&mut self) -> Result<u8, PciError> {
644 return Err(PciError::CreateMmioError);
740 ) -> Result<Box<dyn PciDeviceStructure>, PciError> {
762 return Err(PciError::GetWrongHeader);
808 HeaderType::Unrecognised(_) => Err(PciError::UnrecognisedHeaderType),
1013 fn pci_check_all_buses() -> Result<u8, PciError> {
1032 fn pci_check_function(busdevicefunction: BusDeviceFunction) -> Result<u8, PciError> {
1036 Err(PciError::GetWrongHeader) => {
1049 .ok_or(PciError::PciDeviceStructureTransformError)?;
1058 fn pci_check_device(bus: u8, device: u8) -> Result<u8, PciError> {
1067 Err(PciError::GetWrongHeader) => {
1097 fn pci_check_bus(bus: u8) -> Result<u8, PciError> {
1227 type Error = PciError;
1233 _ => Err(PciError::InvalidBarType),
1331 ///@return Result<&BarInfo, PciError> bar_index在0-5则返回对应的bar_info结构体,超出范围则返回错误
1332 pub fn get_bar(&self, bar_index: u8) -> Result<&BarInfo, PciError> {
1340 _ => Err(PciError::InvalidBarType),
1370 ///@return Result<PciStandardDeviceBar, PciError> 成功则返回对应的PciStandardDeviceBar结构体,失败则返回错误类型
1373 ) -> Result<PciStandardDeviceBar, PciError> {
1409 return Err(PciError::InvalidBarType);
1432 return Err(PciError::CreateMmioError);