Lines Matching refs:mac
16 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_mii_link_change() local
18 struct spl2sw_common *comm = mac->comm; in spl2sw_mii_link_change()
24 reg |= FIELD_PREP(MAC_FORCE_RMII_LINK, mac->lan_port); in spl2sw_mii_link_change()
27 reg |= FIELD_PREP(MAC_FORCE_RMII_SPD, mac->lan_port); in spl2sw_mii_link_change()
29 reg &= FIELD_PREP(MAC_FORCE_RMII_SPD, ~mac->lan_port) | in spl2sw_mii_link_change()
34 reg |= FIELD_PREP(MAC_FORCE_RMII_DPX, mac->lan_port); in spl2sw_mii_link_change()
36 reg &= FIELD_PREP(MAC_FORCE_RMII_DPX, ~mac->lan_port) | in spl2sw_mii_link_change()
41 reg |= FIELD_PREP(MAC_FORCE_RMII_FC, mac->lan_port); in spl2sw_mii_link_change()
43 reg &= FIELD_PREP(MAC_FORCE_RMII_FC, ~mac->lan_port) | in spl2sw_mii_link_change()
47 reg &= FIELD_PREP(MAC_FORCE_RMII_LINK, ~mac->lan_port) | in spl2sw_mii_link_change()
60 struct spl2sw_mac *mac; in spl2sw_phy_connect() local
66 mac = netdev_priv(ndev); in spl2sw_phy_connect()
67 phydev = of_phy_connect(ndev, mac->phy_node, spl2sw_mii_link_change, in spl2sw_phy_connect()
68 0, mac->phy_mode); in spl2sw_phy_connect()