Searched refs:mactype (Results 1 – 1 of 1) sorted by relevance
154 int (*set_mactype)(struct phy_device *phydev, int mactype);167 const struct mv3310_mactype *mactype; member611 int mactype; in mv2110_get_mactype() local613 mactype = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MV_PMA_21X0_PORT_CTRL); in mv2110_get_mactype()614 if (mactype < 0) in mv2110_get_mactype()615 return mactype; in mv2110_get_mactype()617 return mactype & MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK; in mv2110_get_mactype()620 static int mv2110_set_mactype(struct phy_device *phydev, int mactype) in mv2110_set_mactype() argument624 mactype &= MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK; in mv2110_set_mactype()628 MV_PMA_21X0_PORT_CTRL_SWRST | mactype); in mv2110_set_mactype()[all …]