Lines Matching refs:fmb

123 	struct fixed_mdio_bus *fmb = bus->priv;  in fixed_mdio_read()  local
140 list_for_each_entry(fp, &fmb->phys, node) { in fixed_mdio_read()
170 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_set_link_update() local
176 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_set_link_update()
192 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_update_state() local
198 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_update_state()
221 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_add() local
230 fmb->irqs[phy_addr] = irq; in fixed_phy_add()
239 list_add_tail(&fp->node, &fmb->phys); in fixed_phy_add()
251 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_del() local
254 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_phy_del()
271 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_register() local
289 phy = get_phy_device(fmb->mii_bus, phy_addr, false); in fixed_phy_register()
312 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_init() local
321 fmb->mii_bus = mdiobus_alloc(); in fixed_mdio_bus_init()
322 if (fmb->mii_bus == NULL) { in fixed_mdio_bus_init()
327 snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "fixed-0"); in fixed_mdio_bus_init()
328 fmb->mii_bus->name = "Fixed MDIO Bus"; in fixed_mdio_bus_init()
329 fmb->mii_bus->priv = fmb; in fixed_mdio_bus_init()
330 fmb->mii_bus->parent = &pdev->dev; in fixed_mdio_bus_init()
331 fmb->mii_bus->read = &fixed_mdio_read; in fixed_mdio_bus_init()
332 fmb->mii_bus->write = &fixed_mdio_write; in fixed_mdio_bus_init()
333 fmb->mii_bus->irq = fmb->irqs; in fixed_mdio_bus_init()
335 ret = mdiobus_register(fmb->mii_bus); in fixed_mdio_bus_init()
342 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_init()
352 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_exit() local
355 mdiobus_unregister(fmb->mii_bus); in fixed_mdio_bus_exit()
356 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_exit()
359 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_mdio_bus_exit()