Lines Matching defs:reg
41 * 5.3.1.2: dev=31 func=7 reg=0 means a special cycle. We don't want to
48 pci_mech1_getb(int bus, int device, int function, int reg)
57 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
58 val = inb(PCI_CONFDATA | (reg & 0x3));
64 pci_mech1_getw(int bus, int device, int function, int reg)
74 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
75 val = inw(PCI_CONFDATA | (reg & 0x2));
81 pci_mech1_getl(int bus, int device, int function, int reg)
91 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
98 pci_mech1_putb(int bus, int device, int function, int reg, uint8_t val)
106 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
107 outb(PCI_CONFDATA | (reg & 0x3), val);
112 pci_mech1_putw(int bus, int device, int function, int reg, uint16_t val)
120 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
121 outw(PCI_CONFDATA | (reg & 0x2), val);
126 pci_mech1_putl(int bus, int device, int function, int reg, uint32_t val)
134 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));