Home
last modified time | relevance | path

Searched refs:bar_idx (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/pci_endpoint/
Dsandbox-pci_ep.c70 int bar_idx; in sandbox_set_bar() local
75 bar_idx = ep_bar->barno; in sandbox_set_bar()
77 memcpy(&priv->bars[bar_idx], ep_bar, sizeof(*ep_bar)); in sandbox_set_bar()
/external/crosvm/devices/src/pci/
Dpci_configuration.rs361 let bar_idx = BAR0_REG + config.reg_idx; in add_pci_bar() localVariable
385 self.registers[bar_idx + 1] = (config.addr >> 32) as u32; in add_pci_bar()
386 self.writable_bits[bar_idx + 1] = !((config.size >> 32).wrapping_sub(1)) as u32; in add_pci_bar()
399 self.registers[bar_idx] = ((config.addr as u32) & mask) | lower_bits; in add_pci_bar()
400 self.writable_bits[bar_idx] = !(config.size - 1) as u32; in add_pci_bar()
407 let bar_idx = BAR0_REG + bar_num; in get_bar_addr() localVariable
409 self.registers[bar_idx] & BAR_MEM_ADDR_MASK in get_bar_addr()