Lines Matching refs:phyaddr

635 static int smc911x_phy_read(struct net_device *dev, int phyaddr, int phyreg)  in smc911x_phy_read()  argument
640 SMC_GET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_read()
643 __func__, phyaddr, phyreg, phydata); in smc911x_phy_read()
651 static void smc911x_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc911x_phy_write() argument
657 __func__, phyaddr, phyreg, phydata); in smc911x_phy_write()
659 SMC_SET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_write()
669 int phyaddr; in smc911x_phy_detect() local
704 for (phyaddr = 1; phyaddr < 32; ++phyaddr) { in smc911x_phy_detect()
707 SMC_GET_PHY_ID1(lp, phyaddr & 31, id1); in smc911x_phy_detect()
708 SMC_GET_PHY_ID2(lp, phyaddr & 31, id2); in smc911x_phy_detect()
715 lp->mii.phy_id = phyaddr & 31; in smc911x_phy_detect()
720 if (phyaddr < 32) in smc911x_phy_detect()
744 int phyaddr = lp->mii.phy_id; in smc911x_phy_fixed() local
750 SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
752 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
766 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
770 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
850 int phyaddr = lp->mii.phy_id; in smc911x_phy_check_media() local
857 SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_check_media()
868 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_check_media()
887 int phyaddr = lp->mii.phy_id; in smc911x_phy_configure() local
901 if (smc911x_phy_reset(dev, phyaddr)) { in smc911x_phy_configure()
911 SMC_SET_PHY_INT_MASK(lp, phyaddr, PHY_INT_MASK_ENERGY_ON_ | in smc911x_phy_configure()
922 SMC_GET_PHY_BMSR(lp, phyaddr, my_phy_caps); in smc911x_phy_configure()
951 SMC_SET_PHY_MII_ADV(lp, phyaddr, my_ad_caps); in smc911x_phy_configure()
960 SMC_GET_PHY_MII_ADV(lp, phyaddr, status); in smc911x_phy_configure()
966 SMC_SET_PHY_BMCR(lp, phyaddr, BMCR_ANENABLE | BMCR_ANRESTART); in smc911x_phy_configure()
983 int phyaddr = lp->mii.phy_id; in smc911x_phy_interrupt() local
993 SMC_GET_PHY_INT_SRC(lp, phyaddr,status); in smc911x_phy_interrupt()