Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/net/phy/
Dmdio-gpio.c89 struct mii_bus *new_bus; in mdio_gpio_bus_init() local
101 new_bus = alloc_mdio_bitbang(&bitbang->ctrl); in mdio_gpio_bus_init()
102 if (!new_bus) in mdio_gpio_bus_init()
105 new_bus->name = "GPIO Bitbanged MDIO", in mdio_gpio_bus_init()
107 new_bus->phy_mask = pdata->phy_mask; in mdio_gpio_bus_init()
108 new_bus->irq = pdata->irqs; in mdio_gpio_bus_init()
109 new_bus->parent = dev; in mdio_gpio_bus_init()
111 if (new_bus->phy_mask == ~0) in mdio_gpio_bus_init()
115 if (!new_bus->irq[i]) in mdio_gpio_bus_init()
116 new_bus->irq[i] = PHY_POLL; in mdio_gpio_bus_init()
[all …]
/linux-2.6.39/drivers/net/stmmac/
Dstmmac_mdio.c137 struct mii_bus *new_bus; in stmmac_mdio_register() local
142 new_bus = mdiobus_alloc(); in stmmac_mdio_register()
143 if (new_bus == NULL) in stmmac_mdio_register()
156 new_bus->name = "STMMAC MII Bus"; in stmmac_mdio_register()
157 new_bus->read = &stmmac_mdio_read; in stmmac_mdio_register()
158 new_bus->write = &stmmac_mdio_write; in stmmac_mdio_register()
159 new_bus->reset = &stmmac_mdio_reset; in stmmac_mdio_register()
160 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", priv->plat->bus_id); in stmmac_mdio_register()
161 new_bus->priv = ndev; in stmmac_mdio_register()
162 new_bus->irq = irqlist; in stmmac_mdio_register()
[all …]
/linux-2.6.39/drivers/net/fs_enet/
Dmii-fec.c109 struct mii_bus *new_bus; in fs_enet_mdio_probe() local
119 new_bus = mdiobus_alloc(); in fs_enet_mdio_probe()
120 if (!new_bus) in fs_enet_mdio_probe()
127 new_bus->priv = fec; in fs_enet_mdio_probe()
128 new_bus->name = "FEC MII Bus"; in fs_enet_mdio_probe()
129 new_bus->read = &fs_enet_fec_mii_read; in fs_enet_mdio_probe()
130 new_bus->write = &fs_enet_fec_mii_write; in fs_enet_mdio_probe()
131 new_bus->reset = &fs_enet_fec_mii_reset; in fs_enet_mdio_probe()
137 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start); in fs_enet_mdio_probe()
173 new_bus->phy_mask = ~0; in fs_enet_mdio_probe()
[all …]
Dmii-bitbang.c155 struct mii_bus *new_bus; in fs_enet_mdio_probe() local
165 new_bus = alloc_mdio_bitbang(&bitbang->ctrl); in fs_enet_mdio_probe()
166 if (!new_bus) in fs_enet_mdio_probe()
169 new_bus->name = "CPM2 Bitbanged MII", in fs_enet_mdio_probe()
171 ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node); in fs_enet_mdio_probe()
175 new_bus->phy_mask = ~0; in fs_enet_mdio_probe()
176 new_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); in fs_enet_mdio_probe()
177 if (!new_bus->irq) in fs_enet_mdio_probe()
180 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe()
181 dev_set_drvdata(&ofdev->dev, new_bus); in fs_enet_mdio_probe()
[all …]
/linux-2.6.39/drivers/net/
Dfsl_pq_mdio.c187 static int fsl_pq_mdio_find_free(struct mii_bus *new_bus) in fsl_pq_mdio_find_free() argument
194 if (get_phy_id(new_bus, i, &phy_id)) in fsl_pq_mdio_find_free()
276 struct mii_bus *new_bus; in fsl_pq_mdio_probe() local
286 new_bus = mdiobus_alloc(); in fsl_pq_mdio_probe()
287 if (!new_bus) { in fsl_pq_mdio_probe()
292 new_bus->name = "Freescale PowerQUICC MII Bus", in fsl_pq_mdio_probe()
293 new_bus->read = &fsl_pq_mdio_read, in fsl_pq_mdio_probe()
294 new_bus->write = &fsl_pq_mdio_write, in fsl_pq_mdio_probe()
295 new_bus->reset = &fsl_pq_mdio_reset, in fsl_pq_mdio_probe()
296 new_bus->priv = priv; in fsl_pq_mdio_probe()
[all …]
/linux-2.6.39/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c223 struct mii_bus *new_bus; in gpio_mdio_probe() local
233 new_bus = mdiobus_alloc(); in gpio_mdio_probe()
235 if (!new_bus) in gpio_mdio_probe()
238 new_bus->name = "pasemi gpio mdio bus"; in gpio_mdio_probe()
239 new_bus->read = &gpio_mdio_read; in gpio_mdio_probe()
240 new_bus->write = &gpio_mdio_write; in gpio_mdio_probe()
241 new_bus->reset = &gpio_mdio_reset; in gpio_mdio_probe()
244 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", *prop); in gpio_mdio_probe()
245 new_bus->priv = priv; in gpio_mdio_probe()
247 new_bus->irq = priv->mdio_irqs; in gpio_mdio_probe()
[all …]
/linux-2.6.39/virt/kvm/
Dkvm_main.c2354 struct kvm_io_bus *new_bus, *bus; in kvm_io_bus_register_dev() local
2360 new_bus = kzalloc(sizeof(struct kvm_io_bus), GFP_KERNEL); in kvm_io_bus_register_dev()
2361 if (!new_bus) in kvm_io_bus_register_dev()
2363 memcpy(new_bus, bus, sizeof(struct kvm_io_bus)); in kvm_io_bus_register_dev()
2364 new_bus->devs[new_bus->dev_count++] = dev; in kvm_io_bus_register_dev()
2365 rcu_assign_pointer(kvm->buses[bus_idx], new_bus); in kvm_io_bus_register_dev()
2377 struct kvm_io_bus *new_bus, *bus; in kvm_io_bus_unregister_dev() local
2379 new_bus = kzalloc(sizeof(struct kvm_io_bus), GFP_KERNEL); in kvm_io_bus_unregister_dev()
2380 if (!new_bus) in kvm_io_bus_unregister_dev()
2384 memcpy(new_bus, bus, sizeof(struct kvm_io_bus)); in kvm_io_bus_unregister_dev()
[all …]
/linux-2.6.39/drivers/pci/hotplug/
Dsgi_hotplug.c335 struct pci_bus *new_bus = NULL; in enable_slot() local
403 new_bus = pci_add_new_bus(dev->bus, dev, in enable_slot()
405 pci_scan_child_bus(new_bus); in enable_slot()
473 pci_bus_add_devices(new_bus); in enable_slot()
Dibmphp_res.c94 static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node **new_range, struct… in alloc_bus_range() argument
108 newbus = *new_bus; in alloc_bus_range()
174 *new_bus = newbus; in alloc_bus_range()