Lines Matching refs:phyaddr
815 static int smc_phy_read(struct net_device *dev, int phyaddr, int phyreg) in smc_phy_read() argument
827 smc_mii_out(dev, 6 << 10 | phyaddr << 5 | phyreg, 14); in smc_phy_read()
836 __func__, phyaddr, phyreg, phydata); in smc_phy_read()
845 static void smc_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc_phy_write() argument
857 smc_mii_out(dev, 5 << 28 | phyaddr << 23 | phyreg << 18 | 2 << 16 | phydata, 32); in smc_phy_write()
863 __func__, phyaddr, phyreg, phydata); in smc_phy_write()
874 int phyaddr; in smc_phy_detect() local
884 for (phyaddr = 1; phyaddr < 33; ++phyaddr) { in smc_phy_detect()
888 id1 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID1); in smc_phy_detect()
889 id2 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID2); in smc_phy_detect()
898 lp->mii.phy_id = phyaddr & 31; in smc_phy_detect()
912 int phyaddr = lp->mii.phy_id; in smc_phy_fixed() local
918 cfg1 = smc_phy_read(dev, phyaddr, PHY_CFG1_REG); in smc_phy_fixed()
920 smc_phy_write(dev, phyaddr, PHY_CFG1_REG, cfg1); in smc_phy_fixed()
935 smc_phy_write(dev, phyaddr, MII_BMCR, bmcr); in smc_phy_fixed()
1044 int phyaddr = lp->mii.phy_id; in smc_phy_configure() local
1059 if (smc_phy_reset(dev, phyaddr)) { in smc_phy_configure()
1068 smc_phy_write(dev, phyaddr, PHY_MASK_REG, in smc_phy_configure()
1084 my_phy_caps = smc_phy_read(dev, phyaddr, MII_BMSR); in smc_phy_configure()
1113 smc_phy_write(dev, phyaddr, MII_ADVERTISE, my_ad_caps); in smc_phy_configure()
1121 status = smc_phy_read(dev, phyaddr, MII_ADVERTISE); in smc_phy_configure()
1127 smc_phy_write(dev, phyaddr, MII_BMCR, BMCR_ANENABLE | BMCR_ANRESTART); in smc_phy_configure()
1145 int phyaddr = lp->mii.phy_id; in smc_phy_interrupt() local
1157 phy18 = smc_phy_read(dev, phyaddr, PHY_INT_REG); in smc_phy_interrupt()