new_bus 211 arch/powerpc/platforms/pasemi/gpio_mdio.c struct mii_bus *new_bus; new_bus 221 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus = mdiobus_alloc(); new_bus 223 arch/powerpc/platforms/pasemi/gpio_mdio.c if (!new_bus) new_bus 226 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->name = "pasemi gpio mdio bus"; new_bus 227 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->read = &gpio_mdio_read; new_bus 228 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->write = &gpio_mdio_write; new_bus 229 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->reset = &gpio_mdio_reset; new_bus 232 arch/powerpc/platforms/pasemi/gpio_mdio.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", *prop); new_bus 233 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->priv = priv; new_bus 241 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->parent = dev; new_bus 242 arch/powerpc/platforms/pasemi/gpio_mdio.c dev_set_drvdata(dev, new_bus); new_bus 244 arch/powerpc/platforms/pasemi/gpio_mdio.c err = of_mdiobus_register(new_bus, np); new_bus 248 arch/powerpc/platforms/pasemi/gpio_mdio.c new_bus->name, err); new_bus 255 arch/powerpc/platforms/pasemi/gpio_mdio.c kfree(new_bus); new_bus 601 drivers/gpu/vga/vgaarb.c struct pci_bus *new_bus, *bus; new_bus 610 drivers/gpu/vga/vgaarb.c new_bus = vgadev->pdev->bus; new_bus 611 drivers/gpu/vga/vgaarb.c while (new_bus) { new_bus 612 drivers/gpu/vga/vgaarb.c new_bridge = new_bus->self; new_bus 644 drivers/gpu/vga/vgaarb.c new_bus = new_bus->parent; new_bus 154 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c struct mii_bus *new_bus; new_bus 164 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c new_bus = alloc_mdio_bitbang(&bitbang->ctrl); new_bus 165 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c if (!new_bus) new_bus 168 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c new_bus->name = "CPM2 Bitbanged MII", new_bus 170 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node); new_bus 174 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c new_bus->phy_mask = ~0; new_bus 176 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c new_bus->parent = &ofdev->dev; new_bus 177 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c platform_set_drvdata(ofdev, new_bus); new_bus 179 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); new_bus 188 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c free_mdio_bitbang(new_bus); new_bus 103 drivers/net/ethernet/freescale/fs_enet/mii-fec.c struct mii_bus *new_bus; new_bus 113 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus = mdiobus_alloc(); new_bus 114 drivers/net/ethernet/freescale/fs_enet/mii-fec.c if (!new_bus) new_bus 121 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->priv = fec; new_bus 122 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->name = "FEC MII Bus"; new_bus 123 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->read = &fs_enet_fec_mii_read; new_bus 124 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->write = &fs_enet_fec_mii_write; new_bus 130 drivers/net/ethernet/freescale/fs_enet/mii-fec.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start); new_bus 168 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->phy_mask = ~0; new_bus 170 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->parent = &ofdev->dev; new_bus 171 drivers/net/ethernet/freescale/fs_enet/mii-fec.c platform_set_drvdata(ofdev, new_bus); new_bus 173 drivers/net/ethernet/freescale/fs_enet/mii-fec.c ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); new_bus 185 drivers/net/ethernet/freescale/fs_enet/mii-fec.c mdiobus_free(new_bus); new_bus 416 drivers/net/ethernet/freescale/fsl_pq_mdio.c struct mii_bus *new_bus; new_bus 428 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus = mdiobus_alloc_size(sizeof(*priv)); new_bus 429 drivers/net/ethernet/freescale/fsl_pq_mdio.c if (!new_bus) new_bus 432 drivers/net/ethernet/freescale/fsl_pq_mdio.c priv = new_bus->priv; new_bus 433 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus->name = "Freescale PowerQUICC MII Bus", new_bus 434 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus->read = &fsl_pq_mdio_read; new_bus 435 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus->write = &fsl_pq_mdio_write; new_bus 436 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus->reset = &fsl_pq_mdio_reset; new_bus 444 drivers/net/ethernet/freescale/fsl_pq_mdio.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "%pOFn@%llx", np, new_bus 466 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus->parent = &pdev->dev; new_bus 467 drivers/net/ethernet/freescale/fsl_pq_mdio.c platform_set_drvdata(pdev, new_bus); new_bus 495 drivers/net/ethernet/freescale/fsl_pq_mdio.c err = of_mdiobus_register(new_bus, np); new_bus 498 drivers/net/ethernet/freescale/fsl_pq_mdio.c new_bus->name); new_bus 508 drivers/net/ethernet/freescale/fsl_pq_mdio.c kfree(new_bus); new_bus 423 drivers/net/ethernet/hisilicon/hns_mdio.c struct mii_bus *new_bus; new_bus 435 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus = devm_mdiobus_alloc(&pdev->dev); new_bus 436 drivers/net/ethernet/hisilicon/hns_mdio.c if (!new_bus) { new_bus 441 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->name = MDIO_BUS_NAME; new_bus 442 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->read = hns_mdio_read; new_bus 443 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->write = hns_mdio_write; new_bus 444 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->reset = hns_mdio_reset; new_bus 445 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->priv = mdio_dev; new_bus 446 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->parent = &pdev->dev; new_bus 454 drivers/net/ethernet/hisilicon/hns_mdio.c platform_set_drvdata(pdev, new_bus); new_bus 455 drivers/net/ethernet/hisilicon/hns_mdio.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "%s-%s", "Mii", new_bus 506 drivers/net/ethernet/hisilicon/hns_mdio.c ret = of_mdiobus_register(new_bus, pdev->dev.of_node); new_bus 509 drivers/net/ethernet/hisilicon/hns_mdio.c memset(new_bus->irq, PHY_POLL, 4 * PHY_MAX_ADDR); new_bus 512 drivers/net/ethernet/hisilicon/hns_mdio.c new_bus->phy_mask = ~0; new_bus 515 drivers/net/ethernet/hisilicon/hns_mdio.c ret = mdiobus_register(new_bus); new_bus 6884 drivers/net/ethernet/realtek/r8169_main.c struct mii_bus *new_bus; new_bus 6887 drivers/net/ethernet/realtek/r8169_main.c new_bus = devm_mdiobus_alloc(&pdev->dev); new_bus 6888 drivers/net/ethernet/realtek/r8169_main.c if (!new_bus) new_bus 6891 drivers/net/ethernet/realtek/r8169_main.c new_bus->name = "r8169"; new_bus 6892 drivers/net/ethernet/realtek/r8169_main.c new_bus->priv = tp; new_bus 6893 drivers/net/ethernet/realtek/r8169_main.c new_bus->parent = &pdev->dev; new_bus 6894 drivers/net/ethernet/realtek/r8169_main.c new_bus->irq[0] = PHY_IGNORE_INTERRUPT; new_bus 6895 drivers/net/ethernet/realtek/r8169_main.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "r8169-%x", pci_dev_id(pdev)); new_bus 6897 drivers/net/ethernet/realtek/r8169_main.c new_bus->read = r8169_mdio_read_reg; new_bus 6898 drivers/net/ethernet/realtek/r8169_main.c new_bus->write = r8169_mdio_write_reg; new_bus 6900 drivers/net/ethernet/realtek/r8169_main.c ret = mdiobus_register(new_bus); new_bus 6904 drivers/net/ethernet/realtek/r8169_main.c tp->phydev = mdiobus_get_phy(new_bus, 0); new_bus 6906 drivers/net/ethernet/realtek/r8169_main.c mdiobus_unregister(new_bus); new_bus 6913 drivers/net/ethernet/realtek/r8169_main.c mdiobus_unregister(new_bus); new_bus 315 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct mii_bus *new_bus; new_bus 325 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus = mdiobus_alloc(); new_bus 326 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c if (!new_bus) new_bus 330 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c memcpy(new_bus->irq, mdio_bus_data->irqs, sizeof(new_bus->irq)); new_bus 332 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->name = "stmmac"; new_bus 335 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->read = &stmmac_xgmac2_mdio_read; new_bus 336 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->write = &stmmac_xgmac2_mdio_write; new_bus 346 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->read = &stmmac_mdio_read; new_bus 347 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->write = &stmmac_mdio_write; new_bus 352 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->reset = &stmmac_mdio_reset; new_bus 354 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "%s-%x", new_bus 355 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->name, priv->plat->bus_id); new_bus 356 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->priv = ndev; new_bus 357 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->phy_mask = mdio_bus_data->phy_mask; new_bus 358 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->parent = priv->device; new_bus 360 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c err = of_mdiobus_register(new_bus, mdio_node); new_bus 371 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct phy_device *phydev = mdiobus_get_phy(new_bus, addr); new_bus 382 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->irq[addr] = mdio_bus_data->probed_phy_irq; new_bus 400 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c mdiobus_unregister(new_bus); new_bus 401 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c mdiobus_free(new_bus); new_bus 406 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c priv->mii = new_bus; new_bus 411 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c mdiobus_free(new_bus); new_bus 114 drivers/net/phy/mdio-gpio.c struct mii_bus *new_bus; new_bus 118 drivers/net/phy/mdio-gpio.c new_bus = alloc_mdio_bitbang(&bitbang->ctrl); new_bus 119 drivers/net/phy/mdio-gpio.c if (!new_bus) new_bus 122 drivers/net/phy/mdio-gpio.c new_bus->name = "GPIO Bitbanged MDIO"; new_bus 123 drivers/net/phy/mdio-gpio.c new_bus->parent = dev; new_bus 126 drivers/net/phy/mdio-gpio.c snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id); new_bus 128 drivers/net/phy/mdio-gpio.c strncpy(new_bus->id, "gpio", MII_BUS_ID_SIZE); new_bus 131 drivers/net/phy/mdio-gpio.c new_bus->phy_mask = pdata->phy_mask; new_bus 132 drivers/net/phy/mdio-gpio.c new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask; new_bus 135 drivers/net/phy/mdio-gpio.c dev_set_drvdata(dev, new_bus); new_bus 137 drivers/net/phy/mdio-gpio.c return new_bus; new_bus 158 drivers/net/phy/mdio-gpio.c struct mii_bus *new_bus; new_bus 179 drivers/net/phy/mdio-gpio.c new_bus = mdio_gpio_bus_init(&pdev->dev, bitbang, bus_id); new_bus 180 drivers/net/phy/mdio-gpio.c if (!new_bus) new_bus 183 drivers/net/phy/mdio-gpio.c ret = of_mdiobus_register(new_bus, pdev->dev.of_node); new_bus 77 drivers/pci/hotplug/ibmphp_res.c static int __init alloc_bus_range(struct bus_node **new_bus, struct range_node **new_range, struct ebda_pci_rsrc *curr, int flag, u8 first_bus) new_bus 90 drivers/pci/hotplug/ibmphp_res.c newbus = *new_bus; new_bus 155 drivers/pci/hotplug/ibmphp_res.c *new_bus = newbus; new_bus 3970 virt/kvm/kvm_main.c struct kvm_io_bus *new_bus, *bus; new_bus 3981 virt/kvm/kvm_main.c new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1), new_bus 3983 virt/kvm/kvm_main.c if (!new_bus) new_bus 3996 virt/kvm/kvm_main.c memcpy(new_bus, bus, sizeof(*bus) + i * sizeof(struct kvm_io_range)); new_bus 3997 virt/kvm/kvm_main.c new_bus->dev_count++; new_bus 3998 virt/kvm/kvm_main.c new_bus->range[i] = range; new_bus 3999 virt/kvm/kvm_main.c memcpy(new_bus->range + i + 1, bus->range + i, new_bus 4001 virt/kvm/kvm_main.c rcu_assign_pointer(kvm->buses[bus_idx], new_bus); new_bus 4013 virt/kvm/kvm_main.c struct kvm_io_bus *new_bus, *bus; new_bus 4027 virt/kvm/kvm_main.c new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1), new_bus 4029 virt/kvm/kvm_main.c if (!new_bus) { new_bus 4034 virt/kvm/kvm_main.c memcpy(new_bus, bus, sizeof(*bus) + i * sizeof(struct kvm_io_range)); new_bus 4035 virt/kvm/kvm_main.c new_bus->dev_count--; new_bus 4036 virt/kvm/kvm_main.c memcpy(new_bus->range + i, bus->range + i + 1, new_bus 4037 virt/kvm/kvm_main.c (new_bus->dev_count - i) * sizeof(struct kvm_io_range)); new_bus 4040 virt/kvm/kvm_main.c rcu_assign_pointer(kvm->buses[bus_idx], new_bus);