Lines Matching refs:fmb
151 struct fixed_mdio_bus *fmb = bus->priv; in fixed_mdio_read() local
168 list_for_each_entry(fp, &fmb->phys, node) { in fixed_mdio_read()
198 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_set_link_update() local
204 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_set_link_update()
220 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_update_state() local
223 if (!phydev || phydev->bus != fmb->mii_bus) in fixed_phy_update_state()
226 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_update_state()
250 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_add() local
259 fmb->irqs[phy_addr] = irq; in fixed_phy_add()
276 list_add_tail(&fp->node, &fmb->phys); in fixed_phy_add()
291 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_del() local
294 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_phy_del()
314 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_register() local
332 phy = get_phy_device(fmb->mii_bus, phy_addr, false); in fixed_phy_register()
377 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_init() local
386 fmb->mii_bus = mdiobus_alloc(); in fixed_mdio_bus_init()
387 if (fmb->mii_bus == NULL) { in fixed_mdio_bus_init()
392 snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "fixed-0"); in fixed_mdio_bus_init()
393 fmb->mii_bus->name = "Fixed MDIO Bus"; in fixed_mdio_bus_init()
394 fmb->mii_bus->priv = fmb; in fixed_mdio_bus_init()
395 fmb->mii_bus->parent = &pdev->dev; in fixed_mdio_bus_init()
396 fmb->mii_bus->read = &fixed_mdio_read; in fixed_mdio_bus_init()
397 fmb->mii_bus->write = &fixed_mdio_write; in fixed_mdio_bus_init()
398 fmb->mii_bus->irq = fmb->irqs; in fixed_mdio_bus_init()
400 ret = mdiobus_register(fmb->mii_bus); in fixed_mdio_bus_init()
407 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_init()
417 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_exit() local
420 mdiobus_unregister(fmb->mii_bus); in fixed_mdio_bus_exit()
421 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_exit()
424 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_mdio_bus_exit()