Lines Matching refs:slot

93 static uint32_t	pci_docfgregread(int bus, int slot, int func, int reg,
95 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
96 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
100 static int pciereg_cfgread(int bus, unsigned slot, unsigned func,
102 static void pciereg_cfgwrite(int bus, unsigned slot, unsigned func,
210 pci_docfgregread(int bus, int slot, int func, int reg, int bytes)
215 (bus != 0 || !(1 << slot & pcie_badslots)))
216 return (pciereg_cfgread(bus, slot, func, reg, bytes));
218 return (pcireg_cfgread(bus, slot, func, reg, bytes));
225 pci_cfgregread(int bus, int slot, int func, int reg, int bytes)
235 line = pci_docfgregread(bus, slot, func, PCIR_INTLINE, 1);
238 return (pci_docfgregread(bus, slot, func, reg, bytes));
245 pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes)
250 (bus != 0 || !(1 << slot & pcie_badslots)))
251 pciereg_cfgwrite(bus, slot, func, reg, data, bytes);
253 pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
262 pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
279 if (bus == 0 && slot == 0 && (func == 1 || func == 2))
287 if (bus == 1 && (slot != 0 || func != 0))
300 && slot < devmax
310 | (bus << 16) | (slot << 11)
317 dataport = 0xc000 | (slot << 8) | reg;
345 pcireg_cfgread(int bus, int slot, int func, int reg, int bytes)
351 port = pci_cfgenable(bus, slot, func, reg, bytes);
371 pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes)
376 port = pci_cfgenable(bus, slot, func, reg, bytes);
533 int i, slot;
598 for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
599 val1 = pcireg_cfgread(0, slot, 0, 0, 4);
603 val2 = pciereg_cfgread(0, slot, 0, 0, 4);
605 pcie_badslots |= (1 << slot);
613 #define PCIE_PADDR(bar, reg, bus, slot, func) \
616 (((slot) & 0x1f) << 15) | \
664 pciereg_cfgread(int bus, unsigned slot, unsigned func, unsigned reg,
672 if (bus < pcie_minbus || bus > pcie_maxbus || slot > PCI_SLOTMAX ||
677 pa = PCIE_PADDR(pcie_base, reg, bus, slot, func);
702 pciereg_cfgwrite(int bus, unsigned slot, unsigned func, unsigned reg, int data,
709 if (bus < pcie_minbus || bus > pcie_maxbus || slot > PCI_SLOTMAX ||
714 pa = PCIE_PADDR(pcie_base, reg, bus, slot, func);