Lines Matching refs:phyaddr

637 static int smc911x_phy_read(struct net_device *dev, int phyaddr, int phyreg)  in smc911x_phy_read()  argument
642 SMC_GET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_read()
645 __func__, phyaddr, phyreg, phydata); in smc911x_phy_read()
653 static void smc911x_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc911x_phy_write() argument
659 __func__, phyaddr, phyreg, phydata); in smc911x_phy_write()
661 SMC_SET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_write()
671 int phyaddr; in smc911x_phy_detect() local
706 for (phyaddr = 1; phyaddr < 32; ++phyaddr) { in smc911x_phy_detect()
709 SMC_GET_PHY_ID1(lp, phyaddr & 31, id1); in smc911x_phy_detect()
710 SMC_GET_PHY_ID2(lp, phyaddr & 31, id2); in smc911x_phy_detect()
717 lp->mii.phy_id = phyaddr & 31; in smc911x_phy_detect()
722 if (phyaddr < 32) in smc911x_phy_detect()
746 int phyaddr = lp->mii.phy_id; in smc911x_phy_fixed() local
752 SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
754 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
768 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
772 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
852 int phyaddr = lp->mii.phy_id; in smc911x_phy_check_media() local
859 SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_check_media()
870 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_check_media()
889 int phyaddr = lp->mii.phy_id; in smc911x_phy_configure() local
903 if (smc911x_phy_reset(dev, phyaddr)) { in smc911x_phy_configure()
913 SMC_SET_PHY_INT_MASK(lp, phyaddr, PHY_INT_MASK_ENERGY_ON_ | in smc911x_phy_configure()
924 SMC_GET_PHY_BMSR(lp, phyaddr, my_phy_caps); in smc911x_phy_configure()
953 SMC_SET_PHY_MII_ADV(lp, phyaddr, my_ad_caps); in smc911x_phy_configure()
962 SMC_GET_PHY_MII_ADV(lp, phyaddr, status); in smc911x_phy_configure()
968 SMC_SET_PHY_BMCR(lp, phyaddr, BMCR_ANENABLE | BMCR_ANRESTART); in smc911x_phy_configure()
985 int phyaddr = lp->mii.phy_id; in smc911x_phy_interrupt() local
995 SMC_GET_PHY_INT_SRC(lp, phyaddr,status); in smc911x_phy_interrupt()