Lines Matching refs:phy_addr
22 int lxt972_is_phy_connected(int phy_addr) in lxt972_is_phy_connected() argument
26 if (!davinci_eth_phy_read(phy_addr, MII_PHYSID1, &id1)) in lxt972_is_phy_connected()
28 if (!davinci_eth_phy_read(phy_addr, MII_PHYSID2, &id2)) in lxt972_is_phy_connected()
37 int lxt972_get_link_speed(int phy_addr) in lxt972_get_link_speed() argument
42 if (!davinci_eth_phy_read(phy_addr, PHY_LXT971_STAT2, &stat1)) in lxt972_get_link_speed()
48 if (!davinci_eth_phy_read(phy_addr, PHY_LXT971_DIG_CFG, &tmp)) in lxt972_get_link_speed()
53 davinci_eth_phy_write(phy_addr, PHY_LXT971_DIG_CFG, tmp); in lxt972_get_link_speed()
55 if (!davinci_eth_phy_read(phy_addr, PHY_LXT971_DIG_CFG, &tmp)) in lxt972_get_link_speed()
72 int lxt972_init_phy(int phy_addr) in lxt972_init_phy() argument
76 if (!lxt972_get_link_speed(phy_addr)) { in lxt972_init_phy()
78 ret = lxt972_get_link_speed(phy_addr); in lxt972_init_phy()
82 davinci_eth_phy_write(phy_addr, PHY_LXT971_INT_ENABLE, 0); in lxt972_init_phy()
88 int lxt972_auto_negotiate(int phy_addr) in lxt972_auto_negotiate() argument
92 if (!davinci_eth_phy_read(phy_addr, MII_BMCR, &tmp)) in lxt972_auto_negotiate()
97 davinci_eth_phy_write(phy_addr, MII_BMCR, tmp); in lxt972_auto_negotiate()
101 if (!davinci_eth_phy_read(phy_addr, MII_BMSR, &tmp)) in lxt972_auto_negotiate()
107 return (lxt972_get_link_speed(phy_addr)); in lxt972_auto_negotiate()