Lines Matching refs:PciInfo
509 struct PciInfo { struct
511 irq_masks: ArrayVec<[PciIrqMask; PciInfo::MAX_IRQS]>, argument
512 irq_maps: ArrayVec<[PciIrqMap; PciInfo::MAX_IRQS]>, argument
515 impl PciInfo { implementation
522 type PciIrqMask = [u32; PciInfo::IRQ_MASK_CELLS];
523 type PciIrqMap = [u32; PciInfo::IRQ_MAP_CELLS];
548 fn read_pci_info_from(fdt: &Fdt) -> libfdt::Result<PciInfo> { in read_pci_info_from() argument
557 let mut chunks = CellChunkIterator::<{ PciInfo::IRQ_MASK_CELLS }>::new(irq_masks); in read_pci_info_from()
558 let irq_masks = (&mut chunks).take(PciInfo::MAX_IRQS).collect(); in read_pci_info_from()
561 warn!("Input DT has more than {} PCI entries!", PciInfo::MAX_IRQS); in read_pci_info_from()
566 let mut chunks = CellChunkIterator::<{ PciInfo::IRQ_MAP_CELLS }>::new(irq_maps); in read_pci_info_from()
567 let irq_maps = (&mut chunks).take(PciInfo::MAX_IRQS).collect(); in read_pci_info_from()
570 warn!("Input DT has more than {} PCI entries!", PciInfo::MAX_IRQS); in read_pci_info_from()
574 Ok(PciInfo { ranges: [range0, range1], irq_masks, irq_maps }) in read_pci_info_from()
577 fn validate_pci_info(pci_info: &PciInfo, memory_range: &Range<usize>) -> Result<(), RebootReason> { in validate_pci_info() argument
722 fn patch_pci_info(fdt: &mut Fdt, pci_info: &PciInfo) -> libfdt::Result<()> { in patch_pci_info()
920 pci_info: PciInfo,