Lines Matching refs:reg

50 pci_mech1_getb(int bus, int device, int function, int reg)  in pci_mech1_getb()  argument
58 if (reg > pci_iocfg_max_offset) { in pci_mech1_getb()
63 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getb()
64 val = inb(PCI_CONFDATA | (reg & 0x3)); in pci_mech1_getb()
70 pci_mech1_getw(int bus, int device, int function, int reg) in pci_mech1_getw() argument
79 if (reg > pci_iocfg_max_offset) { in pci_mech1_getw()
84 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getw()
85 val = inw(PCI_CONFDATA | (reg & 0x2)); in pci_mech1_getw()
91 pci_mech1_getl(int bus, int device, int function, int reg) in pci_mech1_getl() argument
100 if (reg > pci_iocfg_max_offset) { in pci_mech1_getl()
105 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getl()
112 pci_mech1_putb(int bus, int device, int function, int reg, uint8_t val) in pci_mech1_putb() argument
119 if (reg > pci_iocfg_max_offset) { in pci_mech1_putb()
124 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_putb()
125 outb(PCI_CONFDATA | (reg & 0x3), val); in pci_mech1_putb()
130 pci_mech1_putw(int bus, int device, int function, int reg, uint16_t val) in pci_mech1_putw() argument
137 if (reg > pci_iocfg_max_offset) { in pci_mech1_putw()
142 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_putw()
143 outw(PCI_CONFDATA | (reg & 0x2), val); in pci_mech1_putw()
148 pci_mech1_putl(int bus, int device, int function, int reg, uint32_t val) in pci_mech1_putl() argument
155 if (reg > pci_iocfg_max_offset) { in pci_mech1_putl()
160 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_putl()