Lines Matching refs:seg
40 #define PCI_SAL_ADDRESS(seg, bus, devfn, reg) \ argument
41 (((u64) seg << 24) | (bus << 16) | (devfn << 8) | (reg))
45 #define PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg) \ argument
46 (((u64) seg << 28) | (bus << 20) | (devfn << 12) | (reg))
48 int raw_pci_read(unsigned int seg, unsigned int bus, unsigned int devfn, in raw_pci_read() argument
54 if (!value || (seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) in raw_pci_read()
57 if ((seg | reg) <= 255) { in raw_pci_read()
58 addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); in raw_pci_read()
61 addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); in raw_pci_read()
75 int raw_pci_write(unsigned int seg, unsigned int bus, unsigned int devfn, in raw_pci_write() argument
81 if ((seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) in raw_pci_write()
84 if ((seg | reg) <= 255) { in raw_pci_write()
85 addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); in raw_pci_write()
88 addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); in raw_pci_write()