Lines Matching refs:mdiodev
608 struct mii_dev *mdiodev; in sh_eth_initialize() local
645 mdiodev = mdio_alloc(); in sh_eth_initialize()
646 if (!mdiodev) in sh_eth_initialize()
648 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in sh_eth_initialize()
649 mdiodev->read = bb_miiphy_read; in sh_eth_initialize()
650 mdiodev->write = bb_miiphy_write; in sh_eth_initialize()
652 ret = mdio_register(mdiodev); in sh_eth_initialize()
814 struct mii_dev *mdiodev; in sh_ether_probe() local
834 mdiodev = mdio_alloc(); in sh_ether_probe()
835 if (!mdiodev) { in sh_ether_probe()
840 mdiodev->read = bb_miiphy_read; in sh_ether_probe()
841 mdiodev->write = bb_miiphy_write; in sh_ether_probe()
843 snprintf(mdiodev->name, sizeof(mdiodev->name), udev->name); in sh_ether_probe()
845 ret = mdio_register(mdiodev); in sh_ether_probe()
859 mdio_free(mdiodev); in sh_ether_probe()