Lines Matching full:region
55 static int pciereg_cfgread(struct pcie_mcfg_region *region, int bus,
57 static void pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus,
107 struct pcie_mcfg_region *region; in pci_docfgregread() local
109 region = pcie_lookup_region(domain, bus); in pci_docfgregread()
110 if (region != NULL) in pci_docfgregread()
111 return (pciereg_cfgread(region, bus, slot, func, reg, in pci_docfgregread()
160 struct pcie_mcfg_region *region; in pci_cfgregwrite() local
162 region = pcie_lookup_region(domain, bus); in pci_cfgregwrite()
163 if (region != NULL) { in pci_cfgregwrite()
164 pciereg_cfgwrite(region, bus, slot, func, reg, data, in pci_cfgregwrite()
256 pcie_init_badslots(struct pcie_mcfg_region *region) in pcie_init_badslots() argument
273 val2 = pciereg_cfgread(region, 0, slot, 0, 0, 4); in pcie_init_badslots()
283 struct pcie_mcfg_region *region; in pcie_cfgregopen() local
296 region = &mcfg_regions[mcfg_numregions]; in pcie_cfgregopen()
299 region->base = pmap_mapdev_pciecfg(base + (minbus << 20), (maxbus + 1 - minbus) << 20); in pcie_cfgregopen()
300 region->domain = domain; in pcie_cfgregopen()
301 region->minbus = minbus; in pcie_cfgregopen()
302 region->maxbus = maxbus; in pcie_cfgregopen()
308 pcie_init_badslots(region); in pcie_cfgregopen()
329 pciereg_cfgread(struct pcie_mcfg_region *region, int bus, unsigned slot, in pciereg_cfgread() argument
335 MPASS(bus >= region->minbus && bus <= region->maxbus); in pciereg_cfgread()
340 va = PCIE_VADDR(region->base, reg, bus - region->minbus, slot, func); in pciereg_cfgread()
361 pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus, unsigned slot, in pciereg_cfgwrite() argument
366 MPASS(bus >= region->minbus && bus <= region->maxbus); in pciereg_cfgwrite()
371 va = PCIE_VADDR(region->base, reg, bus - region->minbus, slot, func); in pciereg_cfgwrite()