Lines Matching defs:bytes
53 int reg, int bytes);
56 unsigned slot, unsigned func, unsigned reg, unsigned bytes);
59 unsigned bytes);
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)
104 return (pcireg_cfgread(bus, slot, func, reg, bytes));
112 bytes));
116 return (pcireg_cfgread(bus, slot, func, reg, bytes));
125 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes)
137 if (reg == PCIR_INTLINE && bytes == 1) {
144 return (pci_docfgregread(domain, bus, slot, func, reg, bytes));
152 int bytes)
155 pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
165 bytes);
171 pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
180 pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
185 (unsigned)reg <= PCI_REGMAX && bytes != 3 &&
186 (unsigned)bytes <= 4 && (reg & (bytes - 1)) == 0) {
206 pcireg_cfgread(int bus, int slot, int func, int reg, int bytes)
212 port = pci_cfgenable(bus, slot, func, reg, bytes);
214 switch (bytes) {
232 pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes)
237 port = pci_cfgenable(bus, slot, func, reg, bytes);
239 switch (bytes) {
330 unsigned func, unsigned reg, unsigned bytes)
342 switch (bytes) {
362 unsigned func, unsigned reg, int data, unsigned bytes)
373 switch (bytes) {