Lines Matching refs:mdio_bus
118 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_default_mdio_bus() local
120 mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus, in mv88e6xxx_default_mdio_bus()
122 if (!mdio_bus) in mv88e6xxx_default_mdio_bus()
125 return mdio_bus->bus; in mv88e6xxx_default_mdio_bus()
3384 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read() local
3385 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read()
3410 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_write() local
3411 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write()
3429 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_mdio_register() local
3442 bus = mdiobus_alloc_size(sizeof(*mdio_bus)); in mv88e6xxx_mdio_register()
3446 mdio_bus = bus->priv; in mv88e6xxx_mdio_register()
3447 mdio_bus->bus = bus; in mv88e6xxx_mdio_register()
3448 mdio_bus->chip = chip; in mv88e6xxx_mdio_register()
3449 INIT_LIST_HEAD(&mdio_bus->list); in mv88e6xxx_mdio_register()
3450 mdio_bus->external = external; in mv88e6xxx_mdio_register()
3478 list_add_tail(&mdio_bus->list, &chip->mdios); in mv88e6xxx_mdio_register()
3480 list_add(&mdio_bus->list, &chip->mdios); in mv88e6xxx_mdio_register()
3492 struct mv88e6xxx_mdio_bus *mdio_bus, *p; in mv88e6xxx_mdios_unregister() local
3495 list_for_each_entry_safe(mdio_bus, p, &chip->mdios, list) { in mv88e6xxx_mdios_unregister()
3496 bus = mdio_bus->bus; in mv88e6xxx_mdios_unregister()
3498 if (!mdio_bus->external) in mv88e6xxx_mdios_unregister()