Lines Matching full:nexus
26 struct thunder_mdiobus_nexus *nexus; in thunder_mdiobus_pci_probe() local
30 nexus = devm_kzalloc(&pdev->dev, sizeof(*nexus), GFP_KERNEL); in thunder_mdiobus_pci_probe()
31 if (!nexus) in thunder_mdiobus_pci_probe()
34 pci_set_drvdata(pdev, nexus); in thunder_mdiobus_pci_probe()
49 nexus->bar0 = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); in thunder_mdiobus_pci_probe()
50 if (!nexus->bar0) { in thunder_mdiobus_pci_probe()
83 nexus->buses[i] = bus; in thunder_mdiobus_pci_probe()
86 bus->register_base = nexus->bar0 + in thunder_mdiobus_pci_probe()
105 if (i >= ARRAY_SIZE(nexus->buses)) in thunder_mdiobus_pci_probe()
121 struct thunder_mdiobus_nexus *nexus = pci_get_drvdata(pdev); in thunder_mdiobus_pci_remove() local
123 for (i = 0; i < ARRAY_SIZE(nexus->buses); i++) { in thunder_mdiobus_pci_remove()
124 struct cavium_mdiobus *bus = nexus->buses[i]; in thunder_mdiobus_pci_remove()