Lines Matching refs:phydev

18 static int dp83630_config(struct phy_device *phydev)  in dp83630_config()  argument
22 phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, BMCR_RESET); in dp83630_config()
23 phy_write(phydev, MDIO_DEVAD_NONE, DP83630_PHY_PAGESEL_REG, 0x6); in dp83630_config()
24 ptp_coc_reg = phy_read(phydev, MDIO_DEVAD_NONE, in dp83630_config()
27 phy_write(phydev, MDIO_DEVAD_NONE, DP83630_PHY_PTP_COC_REG, in dp83630_config()
29 phy_write(phydev, MDIO_DEVAD_NONE, DP83630_PHY_PAGESEL_REG, 0); in dp83630_config()
31 genphy_config_aneg(phydev); in dp83630_config()
56 static int dp838xx_config(struct phy_device *phydev) in dp838xx_config() argument
58 phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, BMCR_RESET); in dp838xx_config()
59 genphy_config_aneg(phydev); in dp838xx_config()
64 static int dp83865_parse_status(struct phy_device *phydev) in dp83865_parse_status() argument
68 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MIIM_DP83865_LANR); in dp83865_parse_status()
73 phydev->speed = SPEED_1000; in dp83865_parse_status()
77 phydev->speed = SPEED_100; in dp83865_parse_status()
81 phydev->speed = SPEED_10; in dp83865_parse_status()
87 phydev->duplex = DUPLEX_FULL; in dp83865_parse_status()
89 phydev->duplex = DUPLEX_HALF; in dp83865_parse_status()
94 static int dp83865_startup(struct phy_device *phydev) in dp83865_startup() argument
98 ret = genphy_update_link(phydev); in dp83865_startup()
102 return dp83865_parse_status(phydev); in dp83865_startup()
117 static int dp83848_parse_status(struct phy_device *phydev) in dp83848_parse_status() argument
121 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR); in dp83848_parse_status()
124 phydev->speed = SPEED_100; in dp83848_parse_status()
126 phydev->speed = SPEED_10; in dp83848_parse_status()
130 phydev->duplex = DUPLEX_FULL; in dp83848_parse_status()
132 phydev->duplex = DUPLEX_HALF; in dp83848_parse_status()
138 static int dp83848_startup(struct phy_device *phydev) in dp83848_startup() argument
142 ret = genphy_update_link(phydev); in dp83848_startup()
146 return dp83848_parse_status(phydev); in dp83848_startup()