• Home
  • Raw
  • Download

Lines Matching refs:bus

65 static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn)  in fixed_bar_cap()  argument
76 if (raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number, in fixed_bar_cap()
85 raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number, in fixed_bar_cap()
97 static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, in pci_device_update_fixed() argument
104 domain = pci_domain_nr(bus); in pci_device_update_fixed()
105 busnum = bus->number; in pci_device_update_fixed()
152 static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) in type1_access_ok() argument
164 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok()
171 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_read() argument
174 if (type1_access_ok(bus->number, devfn, where)) in pci_read()
175 return pci_direct_conf1.read(pci_domain_nr(bus), bus->number, in pci_read()
177 return raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number, in pci_read()
181 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_write() argument
199 offset = fixed_bar_cap(bus, devfn); in pci_write()
202 return pci_device_update_fixed(bus, devfn, where, size, value, in pci_write()
211 if (type1_access_ok(bus->number, devfn, where)) in pci_write()
212 return pci_direct_conf1.write(pci_domain_nr(bus), bus->number, in pci_write()
214 return raw_pci_ext_ops->write(pci_domain_nr(bus), bus->number, devfn, in pci_write()
338 if (type1_access_ok(dev->bus->number, dev->devfn, PCI_DEVICE_ID)) in pci_d3delay_fixup()
395 offset = fixed_bar_cap(dev->bus, dev->devfn); in pci_fixed_bar_fixup()