Lines Matching refs:mii

198 	phy_id &= dev->mii.phy_id_mask;  in __smsc75xx_mdio_read()
199 idx &= dev->mii.reg_num_mask; in __smsc75xx_mdio_read()
252 phy_id &= dev->mii.phy_id_mask; in __smsc75xx_mdio_write()
253 idx &= dev->mii.reg_num_mask; in __smsc75xx_mdio_write()
630 struct mii_if_info *mii = &dev->mii; in smsc75xx_link_reset() local
636 smsc75xx_mdio_write(dev->net, mii->phy_id, PHY_INT_SRC, in smsc75xx_link_reset()
645 mii_check_media(mii, 1, 1); in smsc75xx_link_reset()
646 mii_ethtool_gset(&dev->mii, &ecmd); in smsc75xx_link_reset()
647 lcladv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE); in smsc75xx_link_reset()
648 rmtadv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_LPA); in smsc75xx_link_reset()
757 return generic_mii_ioctl(&dev->mii, if_mii(rq), cmd, NULL); in smsc75xx_ioctl()
826 dev->mii.dev = dev->net; in smsc75xx_phy_initialize()
827 dev->mii.mdio_read = smsc75xx_mdio_read; in smsc75xx_phy_initialize()
828 dev->mii.mdio_write = smsc75xx_mdio_write; in smsc75xx_phy_initialize()
829 dev->mii.phy_id_mask = 0x1f; in smsc75xx_phy_initialize()
830 dev->mii.reg_num_mask = 0x1f; in smsc75xx_phy_initialize()
831 dev->mii.supports_gmii = 1; in smsc75xx_phy_initialize()
832 dev->mii.phy_id = SMSC75XX_INTERNAL_PHY_ID; in smsc75xx_phy_initialize()
835 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET); in smsc75xx_phy_initialize()
839 bmcr = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR); in smsc75xx_phy_initialize()
855 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in smsc75xx_phy_initialize()
858 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_CTRL1000, in smsc75xx_phy_initialize()
862 ret = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, PHY_INT_SRC); in smsc75xx_phy_initialize()
868 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_SRC, 0xffff); in smsc75xx_phy_initialize()
870 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_MASK, in smsc75xx_phy_initialize()
872 mii_nway_restart(&dev->mii); in smsc75xx_phy_initialize()
992 struct mii_if_info *mii = &dev->mii; in smsc75xx_phy_gig_workaround() local
997 smsc75xx_mdio_write(dev->net, mii->phy_id, MII_BMCR, 0x4040); in smsc75xx_phy_gig_workaround()
1710 struct mii_if_info *mii = &dev->mii; in smsc75xx_enable_phy_wakeup_interrupts() local
1716 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_SRC); in smsc75xx_enable_phy_wakeup_interrupts()
1723 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_MASK); in smsc75xx_enable_phy_wakeup_interrupts()
1731 smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, PHY_INT_MASK, ret); in smsc75xx_enable_phy_wakeup_interrupts()
1738 struct mii_if_info *mii = &dev->mii; in smsc75xx_link_ok_nopm() local
1742 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR); in smsc75xx_link_ok_nopm()
1748 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR); in smsc75xx_link_ok_nopm()
1874 struct mii_if_info *mii = &dev->mii; in smsc75xx_suspend() local
1878 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, in smsc75xx_suspend()
1887 smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, in smsc75xx_suspend()