Lines Matching refs:devfn
37 unsigned int devfn, int where, in loongson_pcibios_config_access() argument
44 int device = PCI_SLOT(devfn); in loongson_pcibios_config_access()
45 int function = PCI_FUNC(devfn); in loongson_pcibios_config_access()
121 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read() argument
131 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in loongson_pcibios_read()
145 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write() argument
158 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in loongson_pcibios_write()
170 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in loongson_pcibios_write()
190 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr() local
194 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); in _rdmsr()
195 loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_LO, 4, lo); in _rdmsr()
196 loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_HI, 4, hi); in _rdmsr()
206 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _wrmsr() local
210 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); in _wrmsr()
211 loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_LO, 4, lo); in _wrmsr()
212 loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_HI, 4, hi); in _wrmsr()