• Home
  • Raw
  • Download

Lines Matching refs:phyaddr

626 static int smc911x_phy_read(struct net_device *dev, int phyaddr, int phyreg)  in smc911x_phy_read()  argument
631 SMC_GET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_read()
634 __func__, phyaddr, phyreg, phydata); in smc911x_phy_read()
642 static void smc911x_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc911x_phy_write() argument
648 __func__, phyaddr, phyreg, phydata); in smc911x_phy_write()
650 SMC_SET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_write()
660 int phyaddr; in smc911x_phy_detect() local
695 for (phyaddr = 1; phyaddr < 32; ++phyaddr) { in smc911x_phy_detect()
698 SMC_GET_PHY_ID1(lp, phyaddr & 31, id1); in smc911x_phy_detect()
699 SMC_GET_PHY_ID2(lp, phyaddr & 31, id2); in smc911x_phy_detect()
706 lp->mii.phy_id = phyaddr & 31; in smc911x_phy_detect()
711 if (phyaddr < 32) in smc911x_phy_detect()
736 int phyaddr = lp->mii.phy_id; in smc911x_phy_fixed() local
742 SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
744 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
758 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
762 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_fixed()
842 int phyaddr = lp->mii.phy_id; in smc911x_phy_check_media() local
849 SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_check_media()
860 SMC_SET_PHY_BMCR(lp, phyaddr, bmcr); in smc911x_phy_check_media()
879 int phyaddr = lp->mii.phy_id; in smc911x_phy_configure() local
893 if (smc911x_phy_reset(dev, phyaddr)) { in smc911x_phy_configure()
903 SMC_SET_PHY_INT_MASK(lp, phyaddr, PHY_INT_MASK_ENERGY_ON_ | in smc911x_phy_configure()
914 SMC_GET_PHY_BMSR(lp, phyaddr, my_phy_caps); in smc911x_phy_configure()
943 SMC_SET_PHY_MII_ADV(lp, phyaddr, my_ad_caps); in smc911x_phy_configure()
952 SMC_GET_PHY_MII_ADV(lp, phyaddr, status); in smc911x_phy_configure()
958 SMC_SET_PHY_BMCR(lp, phyaddr, BMCR_ANENABLE | BMCR_ANRESTART); in smc911x_phy_configure()
975 int phyaddr = lp->mii.phy_id; in smc911x_phy_interrupt() local
985 SMC_GET_PHY_INT_SRC(lp, phyaddr,status); in smc911x_phy_interrupt()