Lines Matching refs:nexus
27 struct thunder_mdiobus_nexus *nexus; in thunder_mdiobus_pci_probe() local
31 nexus = devm_kzalloc(&pdev->dev, sizeof(*nexus), GFP_KERNEL); in thunder_mdiobus_pci_probe()
32 if (!nexus) in thunder_mdiobus_pci_probe()
35 pci_set_drvdata(pdev, nexus); in thunder_mdiobus_pci_probe()
50 nexus->bar0 = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); in thunder_mdiobus_pci_probe()
51 if (!nexus->bar0) { in thunder_mdiobus_pci_probe()
84 nexus->buses[i] = bus; in thunder_mdiobus_pci_probe()
87 bus->register_base = nexus->bar0 + in thunder_mdiobus_pci_probe()
104 if (i >= ARRAY_SIZE(nexus->buses)) in thunder_mdiobus_pci_probe()
120 struct thunder_mdiobus_nexus *nexus = pci_get_drvdata(pdev); in thunder_mdiobus_pci_remove() local
122 for (i = 0; i < ARRAY_SIZE(nexus->buses); i++) { in thunder_mdiobus_pci_remove()
123 struct cavium_mdiobus *bus = nexus->buses[i]; in thunder_mdiobus_pci_remove()