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