/linux/drivers/net/mdio/ |
A D | mdio-gpio.c | 114 struct mii_bus *new_bus; in mdio_gpio_bus_init() local 118 new_bus = alloc_mdio_bitbang(&bitbang->ctrl); in mdio_gpio_bus_init() 119 if (!new_bus) in mdio_gpio_bus_init() 122 new_bus->name = "GPIO Bitbanged MDIO"; in mdio_gpio_bus_init() 123 new_bus->parent = dev; in mdio_gpio_bus_init() 128 strncpy(new_bus->id, "gpio", MII_BUS_ID_SIZE); in mdio_gpio_bus_init() 131 new_bus->phy_mask = pdata->phy_mask; in mdio_gpio_bus_init() 142 dev_set_drvdata(dev, new_bus); in mdio_gpio_bus_init() 144 return new_bus; in mdio_gpio_bus_init() 165 struct mii_bus *new_bus; in mdio_gpio_probe() local [all …]
|
/linux/drivers/net/ethernet/freescale/fs_enet/ |
A D | mii-fec.c | 103 struct mii_bus *new_bus; in fs_enet_mdio_probe() local 113 new_bus = mdiobus_alloc(); in fs_enet_mdio_probe() 114 if (!new_bus) in fs_enet_mdio_probe() 121 new_bus->priv = fec; in fs_enet_mdio_probe() 122 new_bus->name = "FEC MII Bus"; in fs_enet_mdio_probe() 123 new_bus->read = &fs_enet_fec_mii_read; in fs_enet_mdio_probe() 124 new_bus->write = &fs_enet_fec_mii_write; in fs_enet_mdio_probe() 168 new_bus->phy_mask = ~0; in fs_enet_mdio_probe() 170 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe() 171 platform_set_drvdata(ofdev, new_bus); in fs_enet_mdio_probe() [all …]
|
A D | mii-bitbang.c | 154 struct mii_bus *new_bus; in fs_enet_mdio_probe() local 164 new_bus = alloc_mdio_bitbang(&bitbang->ctrl); in fs_enet_mdio_probe() 165 if (!new_bus) in fs_enet_mdio_probe() 168 new_bus->name = "CPM2 Bitbanged MII", in fs_enet_mdio_probe() 170 ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node); in fs_enet_mdio_probe() 174 new_bus->phy_mask = ~0; in fs_enet_mdio_probe() 176 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe() 177 platform_set_drvdata(ofdev, new_bus); in fs_enet_mdio_probe() 179 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); in fs_enet_mdio_probe() 188 free_mdio_bitbang(new_bus); in fs_enet_mdio_probe()
|
/linux/arch/powerpc/platforms/pasemi/ |
A D | gpio_mdio.c | 211 struct mii_bus *new_bus; in gpio_mdio_probe() local 221 new_bus = mdiobus_alloc(); in gpio_mdio_probe() 223 if (!new_bus) in gpio_mdio_probe() 227 new_bus->read = &gpio_mdio_read; in gpio_mdio_probe() 228 new_bus->write = &gpio_mdio_write; in gpio_mdio_probe() 229 new_bus->reset = &gpio_mdio_reset; in gpio_mdio_probe() 233 new_bus->priv = priv; in gpio_mdio_probe() 241 new_bus->parent = dev; in gpio_mdio_probe() 242 dev_set_drvdata(dev, new_bus); in gpio_mdio_probe() 248 new_bus->name, err); in gpio_mdio_probe() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_mdio.c | 443 struct mii_bus *new_bus; in stmmac_mdio_register() local 453 new_bus = mdiobus_alloc(); in stmmac_mdio_register() 454 if (!new_bus) in stmmac_mdio_register() 458 memcpy(new_bus->irq, mdio_bus_data->irqs, sizeof(new_bus->irq)); in stmmac_mdio_register() 460 new_bus->name = "stmmac"; in stmmac_mdio_register() 477 new_bus->read = &stmmac_mdio_read; in stmmac_mdio_register() 487 new_bus->priv = ndev; in stmmac_mdio_register() 489 new_bus->parent = priv->device; in stmmac_mdio_register() 540 priv->mii = new_bus; in stmmac_mdio_register() 545 mdiobus_unregister(new_bus); in stmmac_mdio_register() [all …]
|
/linux/drivers/net/ethernet/freescale/ |
A D | fsl_pq_mdio.c | 416 struct mii_bus *new_bus; in fsl_pq_mdio_probe() local 429 if (!new_bus) in fsl_pq_mdio_probe() 432 priv = new_bus->priv; in fsl_pq_mdio_probe() 434 new_bus->read = &fsl_pq_mdio_read; in fsl_pq_mdio_probe() 435 new_bus->write = &fsl_pq_mdio_write; in fsl_pq_mdio_probe() 436 new_bus->reset = &fsl_pq_mdio_reset; in fsl_pq_mdio_probe() 466 new_bus->parent = &pdev->dev; in fsl_pq_mdio_probe() 467 platform_set_drvdata(pdev, new_bus); in fsl_pq_mdio_probe() 495 err = of_mdiobus_register(new_bus, np); in fsl_pq_mdio_probe() 498 new_bus->name); in fsl_pq_mdio_probe() [all …]
|
/linux/drivers/net/ethernet/hisilicon/ |
A D | hns_mdio.c | 422 struct mii_bus *new_bus; in hns_mdio_probe() local 435 if (!new_bus) { in hns_mdio_probe() 440 new_bus->name = MDIO_BUS_NAME; in hns_mdio_probe() 441 new_bus->read = hns_mdio_read; in hns_mdio_probe() 442 new_bus->write = hns_mdio_write; in hns_mdio_probe() 443 new_bus->reset = hns_mdio_reset; in hns_mdio_probe() 444 new_bus->priv = mdio_dev; in hns_mdio_probe() 445 new_bus->parent = &pdev->dev; in hns_mdio_probe() 453 platform_set_drvdata(pdev, new_bus); in hns_mdio_probe() 511 new_bus->phy_mask = ~0; in hns_mdio_probe() [all …]
|
/linux/drivers/gpu/vga/ |
A D | vgaarb.c | 580 struct pci_bus *new_bus, *bus; in vga_arbiter_check_bridge_sharing() local 589 new_bus = vgadev->pdev->bus; in vga_arbiter_check_bridge_sharing() 590 while (new_bus) { in vga_arbiter_check_bridge_sharing() 591 new_bridge = new_bus->self; in vga_arbiter_check_bridge_sharing() 623 new_bus = new_bus->parent; in vga_arbiter_check_bridge_sharing()
|
/linux/virt/kvm/ |
A D | kvm_main.c | 4943 struct kvm_io_bus *new_bus, *bus; in kvm_io_bus_register_dev() local 4956 if (!new_bus) in kvm_io_bus_register_dev() 4970 new_bus->dev_count++; in kvm_io_bus_register_dev() 4971 new_bus->range[i] = range; in kvm_io_bus_register_dev() 4972 memcpy(new_bus->range + i + 1, bus->range + i, in kvm_io_bus_register_dev() 4985 struct kvm_io_bus *new_bus, *bus; in kvm_io_bus_unregister_dev() local 5004 if (new_bus) { in kvm_io_bus_unregister_dev() 5006 new_bus->dev_count--; in kvm_io_bus_unregister_dev() 5008 flex_array_size(new_bus, range, new_bus->dev_count - i)); in kvm_io_bus_unregister_dev() 5015 if (!new_bus) { in kvm_io_bus_unregister_dev() [all …]
|
/linux/drivers/net/ethernet/realtek/ |
A D | r8169_main.c | 5072 struct mii_bus *new_bus; in r8169_mdio_register() local 5075 new_bus = devm_mdiobus_alloc(&pdev->dev); in r8169_mdio_register() 5076 if (!new_bus) in r8169_mdio_register() 5079 new_bus->name = "r8169"; in r8169_mdio_register() 5080 new_bus->priv = tp; in r8169_mdio_register() 5081 new_bus->parent = &pdev->dev; in r8169_mdio_register() 5082 new_bus->irq[0] = PHY_MAC_INTERRUPT; in r8169_mdio_register() 5086 new_bus->read = r8169_mdio_read_reg; in r8169_mdio_register() 5087 new_bus->write = r8169_mdio_write_reg; in r8169_mdio_register() 5089 ret = devm_mdiobus_register(&pdev->dev, new_bus); in r8169_mdio_register() [all …]
|
/linux/drivers/pci/hotplug/ |
A D | ibmphp_res.c | 77 static int __init alloc_bus_range(struct bus_node **new_bus, struct range_node **new_range, struct … in alloc_bus_range() argument 90 newbus = *new_bus; in alloc_bus_range() 155 *new_bus = newbus; in alloc_bus_range()
|