Home
last modified time | relevance | path

Searched refs:mactype (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/net/phy/
Dmarvell10g.c148 int (*set_mactype)(struct phy_device *phydev, int mactype);
150 int (*init_interface)(struct phy_device *phydev, int mactype);
595 int mactype; in mv2110_get_mactype() local
597 mactype = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MV_PMA_21X0_PORT_CTRL); in mv2110_get_mactype()
598 if (mactype < 0) in mv2110_get_mactype()
599 return mactype; in mv2110_get_mactype()
601 return mactype & MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK; in mv2110_get_mactype()
604 static int mv2110_set_mactype(struct phy_device *phydev, int mactype) in mv2110_set_mactype() argument
608 mactype &= MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK; in mv2110_set_mactype()
612 MV_PMA_21X0_PORT_CTRL_SWRST | mactype); in mv2110_set_mactype()
[all …]