Lines Matching +full:m +full:- +full:bus
4 * SPDX-License-Identifier: Apache-2.0
39 struct acpi_mcfg *m = acpi_table_get("MCFG", 0); in pcie_mm_init() local
41 if (m != NULL) { in pcie_mm_init()
42 int n = (m->header.Length - sizeof(*m)) / sizeof(m->pci_segs[0]); in pcie_mm_init()
48 bus_segs[i].start_bus = m->pci_segs[i].StartBusNumber; in pcie_mm_init()
50 1 + m->pci_segs[i].EndBusNumber - m->pci_segs[i].StartBusNumber; in pcie_mm_init()
52 phys_addr = m->pci_segs[i].Address; in pcie_mm_init()
53 /* 32 devices & 8 functions per bus, 4k per device */ in pcie_mm_init()
69 int off = PCIE_BDF_TO_BUS(bdf) - bus_segs[i].start_bus; in pcie_mm_conf()
95 #define PCIE_X86_CAP_WORD_MASK 0x3FU /* 6-bit word index .. */
193 * Destination ID - RH 1 - DM 0 in pcie_msi_map()
207 if (vector->msix) { in pcie_msi_mdr()
208 return 0x4000U | vector->arch.vector; in pcie_msi_mdr()
222 int prev_vector = -1; in arch_pcie_msi_vectors_allocate()
254 * and/or set on the PCIe bus. Thus we only require in arch_pcie_msi_vectors_allocate()
257 irq = pcie_get_irq(vectors->bdf); in arch_pcie_msi_vectors_allocate()
262 if ((irq == PCIE_CONF_INTR_IRQ_NONE) || (irq == -1)) { in arch_pcie_msi_vectors_allocate()
263 return -1; in arch_pcie_msi_vectors_allocate()
293 if (vector->arch.remap) { in arch_pcie_msi_vector_connect()
300 id.bits.bus = PCIE_BDF_TO_BUS(vector->bdf); in arch_pcie_msi_vector_connect()
301 id.bits.device = PCIE_BDF_TO_DEV(vector->bdf); in arch_pcie_msi_vector_connect()
302 id.bits.function = PCIE_BDF_TO_FUNC(vector->bdf); in arch_pcie_msi_vector_connect()
304 vtd_remap(vtd, vector->arch.irte, vector->arch.vector, in arch_pcie_msi_vector_connect()
309 z_x86_irq_connect_on_vector(vector->arch.irq, vector->arch.vector, in arch_pcie_msi_vector_connect()