Lines Matching refs:device
76 pci_mech2_getb(int bus, int device, int function, int reg) in pci_mech2_getb() argument
81 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_getb()
85 val = inb(PCI_CADDR2(device, reg)); in pci_mech2_getb()
92 pci_mech2_getw(int bus, int device, int function, int reg) in pci_mech2_getw() argument
97 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_getw()
101 val = inw(PCI_CADDR2(device, reg)); in pci_mech2_getw()
108 pci_mech2_getl(int bus, int device, int function, int reg) in pci_mech2_getl() argument
113 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_getl()
117 val = inl(PCI_CADDR2(device, reg)); in pci_mech2_getl()
124 pci_mech2_putb(int bus, int device, int function, int reg, uint8_t val) in pci_mech2_putb() argument
128 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_putb()
132 outb(PCI_CADDR2(device, reg), val); in pci_mech2_putb()
137 pci_mech2_putw(int bus, int device, int function, int reg, uint16_t val) in pci_mech2_putw() argument
141 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_putw()
145 outw(PCI_CADDR2(device, reg), val); in pci_mech2_putw()
150 pci_mech2_putl(int bus, int device, int function, int reg, uint32_t val) in pci_mech2_putl() argument
154 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_putl()
158 outl(PCI_CADDR2(device, reg), val); in pci_mech2_putl()