Lines Matching refs:map_err
333 .map_err(DeviceRegistrationError::AllocateDeviceAddrs)?; in generate_pci_root()
342 .map_err(DeviceRegistrationError::AllocateIoAddrs)?; in generate_pci_root()
351 .map_err(DeviceRegistrationError::AllocateDeviceAddrs)?; in generate_pci_root()
360 let irqfd = Event::new().map_err(DeviceRegistrationError::EventCreate)?; in generate_pci_root()
361 let irq_resample_fd = Event::new().map_err(DeviceRegistrationError::EventCreate)?; in generate_pci_root()
382 .map_err(DeviceRegistrationError::RegisterIrqfd)?; in generate_pci_root()
392 .map_err(DeviceRegistrationError::RegisterDeviceCapabilities)?; in generate_pci_root()
396 .map_err(DeviceRegistrationError::RegisterIoevent)?; in generate_pci_root()
401 .map_err(DeviceRegistrationError::ProxyDeviceCreation)?; in generate_pci_root()
412 .map_err(DeviceRegistrationError::MmioInsert)?; in generate_pci_root()
418 .map_err(DeviceRegistrationError::MmioInsert)?; in generate_pci_root()
452 .map_err(DeviceRegistrationError::AllocateIoResource)?; in add_goldfish_battery()
454 let irq_evt = Event::new().map_err(DeviceRegistrationError::EventCreate)?; in add_goldfish_battery()
455 let irq_resample_evt = Event::new().map_err(DeviceRegistrationError::EventCreate)?; in add_goldfish_battery()
459 .map_err(DeviceRegistrationError::RegisterIrqfd)?; in add_goldfish_battery()
462 Tube::pair().map_err(DeviceRegistrationError::CreateTube)?; in add_goldfish_battery()
479 .map_err(DeviceRegistrationError::RegisterBattery)?; in add_goldfish_battery()
490 .map_err(DeviceRegistrationError::ProxyDeviceCreation)?, in add_goldfish_battery()
495 .map_err(DeviceRegistrationError::MmioInsert)?; in add_goldfish_battery()
504 .map_err(DeviceRegistrationError::MmioInsert)?; in add_goldfish_battery()
552 let size = image.seek(SeekFrom::End(0)).map_err(LoadImageError::Seek)?; in load_image()
563 .map_err(LoadImageError::Seek)?; in load_image()
567 .map_err(LoadImageError::ReadToMemory)?; in load_image()
599 let size = image.seek(SeekFrom::End(0)).map_err(LoadImageError::Seek)?; in load_image_high()
607 .map_err(LoadImageError::Seek)?; in load_image_high()
618 .map_err(LoadImageError::ReadToMemory)?; in load_image_high()