Lines Matching refs:reg

53 		    int reg, int bytes);
56 unsigned slot, unsigned func, unsigned reg, unsigned bytes);
58 unsigned slot, unsigned func, unsigned reg, int data,
60 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
61 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
101 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument
104 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread()
111 return (pciereg_cfgread(region, bus, slot, func, reg, in pci_docfgregread()
116 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread()
125 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument
137 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
144 return (pci_docfgregread(domain, bus, slot, func, reg, bytes)); in pci_cfgregread()
151 pci_cfgregwrite(int domain, int bus, int slot, int func, int reg, uint32_t data, in pci_cfgregwrite() argument
155 pcireg_cfgwrite(bus, slot, func, reg, data, bytes); in pci_cfgregwrite()
164 pciereg_cfgwrite(region, bus, slot, func, reg, data, in pci_cfgregwrite()
171 pcireg_cfgwrite(bus, slot, func, reg, data, bytes); in pci_cfgregwrite()
180 pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) in pci_cfgenable() argument
185 (unsigned)reg <= PCI_REGMAX && bytes != 3 && in pci_cfgenable()
186 (unsigned)bytes <= 4 && (reg & (bytes - 1)) == 0) { in pci_cfgenable()
188 | (func << 8) | (reg & ~0x03)); in pci_cfgenable()
189 dataport = CONF1_DATA_PORT + (reg & 0x03); in pci_cfgenable()
206 pcireg_cfgread(int bus, int slot, int func, int reg, int bytes) in pcireg_cfgread() argument
212 port = pci_cfgenable(bus, slot, func, reg, bytes); in pcireg_cfgread()
232 pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes) in pcireg_cfgwrite() argument
237 port = pci_cfgenable(bus, slot, func, reg, bytes); in pcireg_cfgwrite()
313 #define PCIE_VADDR(base, reg, bus, slot, func) \ argument
318 ((reg) & 0xfff)))
330 unsigned func, unsigned reg, unsigned bytes) in pciereg_cfgread() argument
337 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgread()
340 va = PCIE_VADDR(region->base, reg, bus - region->minbus, slot, func); in pciereg_cfgread()
362 unsigned func, unsigned reg, int data, unsigned bytes) in pciereg_cfgwrite() argument
368 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgwrite()
371 va = PCIE_VADDR(region->base, reg, bus - region->minbus, slot, func); in pciereg_cfgwrite()