Lines Matching refs:mdio_bus

132 	struct mv88e6xxx_mdio_bus *mdio_bus;  in mv88e6xxx_default_mdio_bus()  local
134 mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus, in mv88e6xxx_default_mdio_bus()
136 if (!mdio_bus) in mv88e6xxx_default_mdio_bus()
139 return mdio_bus->bus; in mv88e6xxx_default_mdio_bus()
3515 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read() local
3516 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read()
3542 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read_c45() local
3543 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read_c45()
3559 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_write() local
3560 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write()
3576 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_write_c45() local
3577 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write_c45()
3595 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_mdio_register() local
3608 bus = mdiobus_alloc_size(sizeof(*mdio_bus)); in mv88e6xxx_mdio_register()
3612 mdio_bus = bus->priv; in mv88e6xxx_mdio_register()
3613 mdio_bus->bus = bus; in mv88e6xxx_mdio_register()
3614 mdio_bus->chip = chip; in mv88e6xxx_mdio_register()
3615 INIT_LIST_HEAD(&mdio_bus->list); in mv88e6xxx_mdio_register()
3616 mdio_bus->external = external; in mv88e6xxx_mdio_register()
3649 list_add_tail(&mdio_bus->list, &chip->mdios); in mv88e6xxx_mdio_register()
3651 list_add(&mdio_bus->list, &chip->mdios); in mv88e6xxx_mdio_register()
3663 struct mv88e6xxx_mdio_bus *mdio_bus, *p; in mv88e6xxx_mdios_unregister() local
3666 list_for_each_entry_safe(mdio_bus, p, &chip->mdios, list) { in mv88e6xxx_mdios_unregister()
3667 bus = mdio_bus->bus; in mv88e6xxx_mdios_unregister()
3669 if (!mdio_bus->external) in mv88e6xxx_mdios_unregister()