Searched refs:bar_idx (Results 1 – 1 of 1) sorted by relevance
445 let bar_idx = BAR0_REG + config.reg_idx; in add_pci_bar() localVariable469 self.registers[bar_idx + 1] = (config.addr >> 32) as u32; in add_pci_bar()470 self.writable_bits[bar_idx + 1] = !((config.size - 1) >> 32) as u32; in add_pci_bar()489 self.registers[bar_idx] = ((config.addr as u32) & mask) | lower_bits; in add_pci_bar()490 self.writable_bits[bar_idx] = !(config.size - 1) as u32; in add_pci_bar()525 let bar_idx = BAR0_REG + bar_num; in get_bar_addr() localVariable533 PciBarRegionType::IORegion => u64::from(self.registers[bar_idx] & BAR_IO_ADDR_MASK), in get_bar_addr()535 u64::from(self.registers[bar_idx] & BAR_MEM_ADDR_MASK) in get_bar_addr()538 u64::from(self.registers[bar_idx] & BAR_MEM_ADDR_MASK) in get_bar_addr()539 | u64::from(self.registers[bar_idx + 1]) << 32 in get_bar_addr()