Lines Matching refs:fmb

52 	struct fixed_mdio_bus *fmb = &platform_fmb;  in fixed_phy_change_carrier()  local
59 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_change_carrier()
77 struct fixed_mdio_bus *fmb = bus->priv; in fixed_mdio_read() local
80 list_for_each_entry(fp, &fmb->phys, node) { in fixed_mdio_read()
119 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_set_link_update() local
125 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_set_link_update()
142 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_add_gpiod() local
156 fmb->mii_bus->irq[phy_addr] = irq; in fixed_phy_add_gpiod()
164 list_add_tail(&fp->node, &fmb->phys); in fixed_phy_add_gpiod()
180 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_del() local
183 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_phy_del()
240 struct fixed_mdio_bus *fmb = &platform_fmb; in __fixed_phy_register() local
245 if (!fmb->mii_bus || fmb->mii_bus->state != MDIOBUS_REGISTERED) in __fixed_phy_register()
266 phy = get_phy_device(fmb->mii_bus, phy_addr, false); in __fixed_phy_register()
346 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_init() local
353 fmb->mii_bus = mdiobus_alloc(); in fixed_mdio_bus_init()
354 if (fmb->mii_bus == NULL) { in fixed_mdio_bus_init()
359 snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "fixed-0"); in fixed_mdio_bus_init()
360 fmb->mii_bus->name = "Fixed MDIO Bus"; in fixed_mdio_bus_init()
361 fmb->mii_bus->priv = fmb; in fixed_mdio_bus_init()
362 fmb->mii_bus->parent = &pdev->dev; in fixed_mdio_bus_init()
363 fmb->mii_bus->read = &fixed_mdio_read; in fixed_mdio_bus_init()
364 fmb->mii_bus->write = &fixed_mdio_write; in fixed_mdio_bus_init()
366 ret = mdiobus_register(fmb->mii_bus); in fixed_mdio_bus_init()
373 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_init()
382 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_exit() local
385 mdiobus_unregister(fmb->mii_bus); in fixed_mdio_bus_exit()
386 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_exit()
389 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_mdio_bus_exit()