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()
173 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_del() local
176 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_phy_del()
228 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_phy_register() local
234 if (!fmb->mii_bus || fmb->mii_bus->state != MDIOBUS_REGISTERED) in fixed_phy_register()
253 phy = get_phy_device(fmb->mii_bus, phy_addr, false); in fixed_phy_register()
317 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_init() local
324 fmb->mii_bus = mdiobus_alloc(); in fixed_mdio_bus_init()
325 if (fmb->mii_bus == NULL) { in fixed_mdio_bus_init()
330 snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "fixed-0"); in fixed_mdio_bus_init()
331 fmb->mii_bus->name = "Fixed MDIO Bus"; in fixed_mdio_bus_init()
332 fmb->mii_bus->priv = fmb; in fixed_mdio_bus_init()
333 fmb->mii_bus->parent = &fdev->dev; in fixed_mdio_bus_init()
334 fmb->mii_bus->read = &fixed_mdio_read; in fixed_mdio_bus_init()
335 fmb->mii_bus->write = &fixed_mdio_write; in fixed_mdio_bus_init()
336 fmb->mii_bus->phy_mask = ~0; in fixed_mdio_bus_init()
338 ret = mdiobus_register(fmb->mii_bus); in fixed_mdio_bus_init()
345 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_init()
354 struct fixed_mdio_bus *fmb = &platform_fmb; in fixed_mdio_bus_exit() local
357 mdiobus_unregister(fmb->mii_bus); in fixed_mdio_bus_exit()
358 mdiobus_free(fmb->mii_bus); in fixed_mdio_bus_exit()
361 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_mdio_bus_exit()