Lines Matching refs:devfn
65 unsigned int devfn, int where) in bcm63xx_setup_cfg_access() argument
70 slot = PCI_SLOT(devfn); in bcm63xx_setup_cfg_access()
71 func = PCI_FUNC(devfn); in bcm63xx_setup_cfg_access()
101 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_read() argument
109 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_read()
122 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_write() argument
130 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_write()
147 static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_read() argument
154 if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) in bcm63xx_pci_read()
157 return bcm63xx_do_cfg_read(type, bus->number, devfn, in bcm63xx_pci_read()
161 static int bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_write() argument
168 if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) in bcm63xx_pci_write()
171 return bcm63xx_do_cfg_write(type, bus->number, devfn, in bcm63xx_pci_write()
362 static int bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_cb_read() argument
367 if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { in bcm63xx_cb_read()
378 PCI_SLOT(devfn) == 0) in bcm63xx_cb_read()
386 static int bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_cb_write() argument
389 if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { in bcm63xx_cb_write()
396 PCI_SLOT(devfn) == 0) in bcm63xx_cb_write()
438 PCI_SLOT(dev->devfn) == 0) in bcm63xx_fixup()
468 static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) in bcm63xx_pcie_can_access() argument
472 return PCI_SLOT(devfn) == 0; in bcm63xx_pcie_can_access()
474 if (PCI_SLOT(devfn) == 0) in bcm63xx_pcie_can_access()
483 static int bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pcie_read() argument
489 if (!bcm63xx_pcie_can_access(bus, devfn)) in bcm63xx_pcie_read()
503 static int bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pcie_write() argument
509 if (!bcm63xx_pcie_can_access(bus, devfn)) in bcm63xx_pcie_write()