Lines Matching refs:mii
378 phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in sr_get_phyid()
389 phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in sr_get_phyid()
485 return mii_link_ok(&dev->mii); in sr_get_link()
492 return generic_mii_ioctl(&dev->mii, if_mii(rq), cmd, NULL); in sr_ioctl()
539 mii_check_media(&dev->mii, 1, 1); in sr9800_link_reset()
540 mii_ethtool_gset(&dev->mii, &ecmd); in sr9800_link_reset()
563 sr_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET); in sr9800_set_default_mode()
564 sr_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in sr9800_set_default_mode()
566 mii_nway_restart(&dev->mii); in sr9800_set_default_mode()
767 dev->mii.dev = dev->net; in sr9800_bind()
768 dev->mii.mdio_read = sr_mdio_read; in sr9800_bind()
769 dev->mii.mdio_write = sr_mdio_write; in sr9800_bind()
770 dev->mii.phy_id_mask = 0x1f; in sr9800_bind()
771 dev->mii.reg_num_mask = 0x1f; in sr9800_bind()
772 dev->mii.phy_id = sr_get_phy_addr(dev); in sr9800_bind()
777 embd_phy = ((dev->mii.phy_id & 0x1f) == 0x10 ? 1 : 0); in sr9800_bind()