Searched refs:bar_orig (Results 1 – 1 of 1) sorted by relevance
1289 let bar_orig = PciArch::read_config(&bus_device_function, BAR0_OFFSET + 4 * bar_index); in pci_bar_init() localVariable1301 PciArch::write_config(&bus_device_function, BAR0_OFFSET + 4 * bar_index, bar_orig); in pci_bar_init()1305 if bar_orig & 0x00000001 == 0x00000001 { in pci_bar_init()1307 let address = bar_orig & 0xfffffffc; in pci_bar_init()1311 let mut address = u64::from(bar_orig & 0xfffffff0); in pci_bar_init()1312 let prefetchable = bar_orig & 0x00000008 != 0; in pci_bar_init()1313 let address_type = MemoryBarType::try_from(((bar_orig & 0x00000006) >> 1) as u8)?; in pci_bar_init()