Lines Matching defs:reg
88 * 5.3.1.2: dev=31 func=7 reg=0 means a special cycle. We don't want to
95 pci_mech1_amd_getb(int bus, int device, int function, int reg)
105 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
106 val = inb(PCI_CONFDATA | (reg & 0x3));
112 pci_mech1_amd_getw(int bus, int device, int function, int reg)
122 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
123 val = inw(PCI_CONFDATA | (reg & 0x2));
129 pci_mech1_amd_getl(int bus, int device, int function, int reg)
139 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
146 pci_mech1_amd_putb(int bus, int device, int function, int reg, uint8_t val)
154 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
155 outb(PCI_CONFDATA | (reg & 0x3), val);
160 pci_mech1_amd_putw(int bus, int device, int function, int reg, uint16_t val)
168 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
169 outw(PCI_CONFDATA | (reg & 0x2), val);
174 pci_mech1_amd_putl(int bus, int device, int function, int reg, uint32_t val)
182 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));