Lines Matching defs:fmb
50 struct fixed_mdio_bus *fmb = &platform_fmb;
57 list_for_each_entry(fp, &fmb->phys, node) {
75 struct fixed_mdio_bus *fmb = bus->priv;
78 list_for_each_entry(fp, &fmb->phys, node) {
115 struct fixed_mdio_bus *fmb = &platform_fmb;
121 list_for_each_entry(fp, &fmb->phys, node) {
138 struct fixed_mdio_bus *fmb = &platform_fmb;
150 fmb->mii_bus->irq[phy_addr] = irq;
158 list_add_tail(&fp->node, &fmb->phys);
174 struct fixed_mdio_bus *fmb = &platform_fmb;
177 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) {
231 struct fixed_mdio_bus *fmb = &platform_fmb;
236 if (!fmb->mii_bus || fmb->mii_bus->state != MDIOBUS_REGISTERED)
257 phy = get_phy_device(fmb->mii_bus, phy_addr, false);
337 struct fixed_mdio_bus *fmb = &platform_fmb;
344 fmb->mii_bus = mdiobus_alloc();
345 if (fmb->mii_bus == NULL) {
350 snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "fixed-0");
351 fmb->mii_bus->name = "Fixed MDIO Bus";
352 fmb->mii_bus->priv = fmb;
353 fmb->mii_bus->parent = &pdev->dev;
354 fmb->mii_bus->read = &fixed_mdio_read;
355 fmb->mii_bus->write = &fixed_mdio_write;
357 ret = mdiobus_register(fmb->mii_bus);
364 mdiobus_free(fmb->mii_bus);
373 struct fixed_mdio_bus *fmb = &platform_fmb;
376 mdiobus_unregister(fmb->mii_bus);
377 mdiobus_free(fmb->mii_bus);
380 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) {