Lines Matching full:nexus
30 struct thunder_mdiobus_nexus *nexus; in thunder_mdiobus_pci_probe() local
34 nexus = devm_kzalloc(&pdev->dev, sizeof(*nexus), GFP_KERNEL); in thunder_mdiobus_pci_probe()
35 if (!nexus) in thunder_mdiobus_pci_probe()
38 pci_set_drvdata(pdev, nexus); in thunder_mdiobus_pci_probe()
53 nexus->bar0 = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); in thunder_mdiobus_pci_probe()
54 if (!nexus->bar0) { in thunder_mdiobus_pci_probe()
87 nexus->buses[i] = bus; in thunder_mdiobus_pci_probe()
90 bus->register_base = (u64)nexus->bar0 + in thunder_mdiobus_pci_probe()
107 if (i >= ARRAY_SIZE(nexus->buses)) in thunder_mdiobus_pci_probe()
123 struct thunder_mdiobus_nexus *nexus = pci_get_drvdata(pdev); in thunder_mdiobus_pci_remove() local
125 for (i = 0; i < ARRAY_SIZE(nexus->buses); i++) { in thunder_mdiobus_pci_remove()
126 struct cavium_mdiobus *bus = nexus->buses[i]; in thunder_mdiobus_pci_remove()