Home
last modified time | relevance | path

Searched refs:new_bus (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/net/mdio/
Dmdio-gpio.c114 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()
126 snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id); 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()
132 new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask; in mdio_gpio_bus_init()
135 dev_set_drvdata(dev, new_bus); in mdio_gpio_bus_init()
[all …]
/Linux-v5.10/drivers/net/ethernet/freescale/fs_enet/
Dmii-fec.c103 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()
130 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start); 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()
[all …]
Dmii-bitbang.c154 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-v5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_mdio.c349 struct mii_bus *new_bus; in stmmac_mdio_register() local
359 new_bus = mdiobus_alloc(); in stmmac_mdio_register()
360 if (!new_bus) in stmmac_mdio_register()
364 memcpy(new_bus->irq, mdio_bus_data->irqs, sizeof(new_bus->irq)); in stmmac_mdio_register()
366 new_bus->name = "stmmac"; in stmmac_mdio_register()
369 new_bus->read = &stmmac_xgmac2_mdio_read; in stmmac_mdio_register()
370 new_bus->write = &stmmac_xgmac2_mdio_write; in stmmac_mdio_register()
380 new_bus->read = &stmmac_mdio_read; in stmmac_mdio_register()
381 new_bus->write = &stmmac_mdio_write; in stmmac_mdio_register()
394 new_bus->reset = &stmmac_mdio_reset; in stmmac_mdio_register()
[all …]
/Linux-v5.10/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c211 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()
226 new_bus->name = "pasemi gpio mdio 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()
232 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", *prop); in gpio_mdio_probe()
233 new_bus->priv = priv; in gpio_mdio_probe()
241 new_bus->parent = dev; in gpio_mdio_probe()
[all …]
/Linux-v5.10/drivers/net/ethernet/freescale/
Dfsl_pq_mdio.c416 struct mii_bus *new_bus; in fsl_pq_mdio_probe() local
428 new_bus = mdiobus_alloc_size(sizeof(*priv)); in fsl_pq_mdio_probe()
429 if (!new_bus) in fsl_pq_mdio_probe()
432 priv = new_bus->priv; in fsl_pq_mdio_probe()
433 new_bus->name = "Freescale PowerQUICC MII Bus", 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()
444 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%pOFn@%llx", np, in fsl_pq_mdio_probe()
466 new_bus->parent = &pdev->dev; in fsl_pq_mdio_probe()
[all …]
/Linux-v5.10/drivers/net/ethernet/hisilicon/
Dhns_mdio.c422 struct mii_bus *new_bus; in hns_mdio_probe() local
434 new_bus = devm_mdiobus_alloc(&pdev->dev); in hns_mdio_probe()
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()
[all …]
/Linux-v5.10/drivers/gpu/vga/
Dvgaarb.c600 struct pci_bus *new_bus, *bus; in vga_arbiter_check_bridge_sharing() local
609 new_bus = vgadev->pdev->bus; in vga_arbiter_check_bridge_sharing()
610 while (new_bus) { in vga_arbiter_check_bridge_sharing()
611 new_bridge = new_bus->self; in vga_arbiter_check_bridge_sharing()
643 new_bus = new_bus->parent; in vga_arbiter_check_bridge_sharing()
/Linux-v5.10/virt/kvm/
Dkvm_main.c4297 struct kvm_io_bus *new_bus, *bus; in kvm_io_bus_register_dev() local
4308 new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1), in kvm_io_bus_register_dev()
4310 if (!new_bus) in kvm_io_bus_register_dev()
4323 memcpy(new_bus, bus, sizeof(*bus) + i * sizeof(struct kvm_io_range)); in kvm_io_bus_register_dev()
4324 new_bus->dev_count++; in kvm_io_bus_register_dev()
4325 new_bus->range[i] = range; in kvm_io_bus_register_dev()
4326 memcpy(new_bus->range + i + 1, bus->range + i, in kvm_io_bus_register_dev()
4328 rcu_assign_pointer(kvm->buses[bus_idx], new_bus); in kvm_io_bus_register_dev()
4340 struct kvm_io_bus *new_bus, *bus; in kvm_io_bus_unregister_dev() local
4354 new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1), in kvm_io_bus_unregister_dev()
[all …]
/Linux-v5.10/drivers/net/ethernet/realtek/
Dr8169_main.c5080 struct mii_bus *new_bus; in r8169_mdio_register() local
5083 new_bus = devm_mdiobus_alloc(&pdev->dev); in r8169_mdio_register()
5084 if (!new_bus) in r8169_mdio_register()
5087 new_bus->name = "r8169"; in r8169_mdio_register()
5088 new_bus->priv = tp; in r8169_mdio_register()
5089 new_bus->parent = &pdev->dev; in r8169_mdio_register()
5090 new_bus->irq[0] = PHY_IGNORE_INTERRUPT; in r8169_mdio_register()
5091 snprintf(new_bus->id, MII_BUS_ID_SIZE, "r8169-%x", pci_dev_id(pdev)); in r8169_mdio_register()
5093 new_bus->read = r8169_mdio_read_reg; in r8169_mdio_register()
5094 new_bus->write = r8169_mdio_write_reg; in r8169_mdio_register()
[all …]
/Linux-v5.10/drivers/pci/hotplug/
Dibmphp_res.c77 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()