Searched refs:pci_info (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Virtualization/vmbase/src/virtio/ |
D | pci.rs | 67 pub fn initialize(pci_info: PciInfo, memory: &mut MemoryTracker) -> Result<PciRoot, PciError> { in initialize() 68 PCI_INFO.set(Box::new(pci_info.clone())).map_err(|_| PciError::DuplicateInitialization)?; in initialize() 70 memory.map_mmio_range(pci_info.cam_range.clone()).map_err(PciError::CamMapFailed)?; in initialize() 71 let bar_range = pci_info.bar_range.start as usize..pci_info.bar_range.end as usize; in initialize() 76 Ok(unsafe { pci_info.make_pci_root() }) in initialize()
|
D | hal.rs | 69 let pci_info = PCI_INFO.get().expect("VirtIO HAL used before PCI_INFO was initialized"); in mmio_phys_to_virt() localVariable 71 let start = pci_info.bar_range.start.try_into().unwrap(); in mmio_phys_to_virt() 72 let end = pci_info.bar_range.end.try_into().unwrap(); in mmio_phys_to_virt()
|
/packages/modules/Virtualization/vmbase/example/src/ |
D | main.rs | 92 let pci_info = PciInfo::from_fdt(fdt).unwrap(); in main() localVariable 93 debug!("Found PCI CAM at {:#x}-{:#x}", pci_info.cam_range.start, pci_info.cam_range.end); in main() 99 init_page_table(&get_bar_region(&pci_info)).unwrap(); in main() 105 let mut pci_root = unsafe { pci_info.make_pci_root() }; in main()
|
D | pci.rs | 117 pub fn get_bar_region(pci_info: &PciInfo) -> MemoryRegion { in get_bar_region() 118 MemoryRegion::new(pci_info.bar_range.start as usize, pci_info.bar_range.end as usize) in get_bar_region()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | fdt.rs | 577 fn validate_pci_info(pci_info: &PciInfo, memory_range: &Range<usize>) -> Result<(), RebootReason> { in validate_pci_info() 578 for range in pci_info.ranges.iter() { in validate_pci_info() 581 for irq_mask in pci_info.irq_masks.iter() { in validate_pci_info() 584 for (idx, irq_map) in pci_info.irq_maps.iter().enumerate() { in validate_pci_info() 722 fn patch_pci_info(fdt: &mut Fdt, pci_info: &PciInfo) -> libfdt::Result<()> { in patch_pci_info() 726 let irq_masks_size = pci_info.irq_masks.len() * size_of::<PciIrqMask>(); in patch_pci_info() 729 let irq_maps_size = pci_info.irq_maps.len() * size_of::<PciIrqMap>(); in patch_pci_info() 734 flatten(&[pci_info.ranges[0].to_cells(), pci_info.ranges[1].to_cells()]), in patch_pci_info() 920 pci_info: PciInfo, field 1050 let pci_info = read_pci_info_from(fdt).map_err(|e| { in parse_device_tree() localVariable [all …]
|
D | main.rs | 102 let pci_info = PciInfo::from_fdt(fdt).map_err(handle_pci_error)?; in main() localVariable 103 debug!("PCI: {:#x?}", pci_info); in main() 104 let mut pci_root = pci::initialize(pci_info, MEMORY.lock().as_mut().unwrap()).map_err(|e| { in main()
|
/packages/modules/Virtualization/rialto/src/ |
D | main.rs | 170 let pci_info = PciInfo::from_fdt(fdt)?; in try_main() localVariable 172 let mut pci_root = pci::initialize(pci_info, MEMORY.lock().as_mut().unwrap()) in try_main()
|