Searched refs:mactype (Results 1 – 1 of 1) sorted by relevance
148 int (*set_mactype)(struct phy_device *phydev, int mactype);150 int (*init_interface)(struct phy_device *phydev, int mactype);602 int mactype; in mv2110_get_mactype() local604 mactype = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MV_PMA_21X0_PORT_CTRL); in mv2110_get_mactype()605 if (mactype < 0) in mv2110_get_mactype()606 return mactype; in mv2110_get_mactype()608 return mactype & MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK; in mv2110_get_mactype()611 static int mv2110_set_mactype(struct phy_device *phydev, int mactype) in mv2110_set_mactype() argument615 mactype &= MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK; in mv2110_set_mactype()619 MV_PMA_21X0_PORT_CTRL_SWRST | mactype); in mv2110_set_mactype()[all …]