Lines Matching refs:fmb

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