Lines Matching refs:fmb
50 struct fixed_mdio_bus *fmb = &platform_fmb;
57 list_for_each_entry(fp, &fmb->phys, node) {
75 struct fixed_mdio_bus *fmb = bus->priv;
78 list_for_each_entry(fp, &fmb->phys, node) {
115 struct fixed_mdio_bus *fmb = &platform_fmb;
121 list_for_each_entry(fp, &fmb->phys, node) {
138 struct fixed_mdio_bus *fmb = &platform_fmb;
150 fmb->mii_bus->irq[phy_addr] = irq;
158 list_add_tail(&fp->node, &fmb->phys);
173 struct fixed_mdio_bus *fmb = &platform_fmb;
176 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) {
228 struct fixed_mdio_bus *fmb = &platform_fmb;
234 if (!fmb->mii_bus || fmb->mii_bus->state != MDIOBUS_REGISTERED)
253 phy = get_phy_device(fmb->mii_bus, phy_addr, false);
317 struct fixed_mdio_bus *fmb = &platform_fmb;
324 fmb->mii_bus = mdiobus_alloc();
325 if (fmb->mii_bus == NULL) {
330 snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "fixed-0");
331 fmb->mii_bus->name = "Fixed MDIO Bus";
332 fmb->mii_bus->priv = fmb;
333 fmb->mii_bus->parent = &fdev->dev;
334 fmb->mii_bus->read = &fixed_mdio_read;
335 fmb->mii_bus->write = &fixed_mdio_write;
336 fmb->mii_bus->phy_mask = ~0;
338 ret = mdiobus_register(fmb->mii_bus);
345 mdiobus_free(fmb->mii_bus);
354 struct fixed_mdio_bus *fmb = &platform_fmb;
357 mdiobus_unregister(fmb->mii_bus);
358 mdiobus_free(fmb->mii_bus);
361 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) {