Lines Matching refs:devfn
34 unsigned int devfn, int where,
41 int device = PCI_SLOT(devfn);
42 int function = PCI_FUNC(devfn);
118 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn,
128 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
142 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn,
155 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn,
167 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where,
187 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0);
191 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr);
192 loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_LO, 4, lo);
193 loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_HI, 4, hi);
203 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0);
207 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr);
208 loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_LO, 4, lo);
209 loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_HI, 4, hi);