Searched refs:bar_orig (Results 1 – 1 of 1) sorted by relevance
1382 let bar_orig = PciArch::read_config(&bus_device_function, BAR0_OFFSET + 4 * bar_index); in pci_bar_init() localVariable1394 PciArch::write_config(&bus_device_function, BAR0_OFFSET + 4 * bar_index, bar_orig); in pci_bar_init()1398 if bar_orig & 0x00000001 == 0x00000001 { in pci_bar_init()1400 let address = bar_orig & 0xfffffffc; in pci_bar_init()1404 let mut address = u64::from(bar_orig & 0xfffffff0); in pci_bar_init()1405 let prefetchable = bar_orig & 0x00000008 != 0; in pci_bar_init()1406 let address_type = MemoryBarType::try_from(((bar_orig & 0x00000006) >> 1) as u8)?; in pci_bar_init()