Home
last modified time | relevance | path

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

/Zephyr-latest/arch/x86/core/
Dpcie.c32 } bus_segs[MAX_PCI_BUS_SEGMENTS]; variable
48 bus_segs[i].start_bus = m->pci_segs[i].StartBusNumber; in pcie_mm_init()
49 bus_segs[i].n_buses = in pcie_mm_init()
54 size = bus_segs[i].n_buses * (32 * 8 * 4096); in pcie_mm_init()
56 device_map((mm_reg_t *)&bus_segs[i].mmio, phys_addr, size, in pcie_mm_init()
68 for (int i = 0; i < ARRAY_SIZE(bus_segs); i++) { in pcie_mm_conf()
69 int off = PCIE_BDF_TO_BUS(bdf) - bus_segs[i].start_bus; in pcie_mm_conf()
71 if (off >= 0 && off < bus_segs[i].n_buses) { in pcie_mm_conf()
77 = (void *)&bus_segs[i].mmio[bdf << 4]; in pcie_mm_conf()
132 if (bus_segs[0].mmio == NULL) { in pcie_conf()