Lines Matching full:phy_ctrl
554 u32 phy_ctrl; in _sc92031_phy_reset() local
556 phy_ctrl = ioread32(port_base + PhyCtrl); in _sc92031_phy_reset()
557 phy_ctrl &= ~(PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10); in _sc92031_phy_reset()
558 phy_ctrl |= PhyCtrlAne | PhyCtrlReset; in _sc92031_phy_reset()
563 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10; in _sc92031_phy_reset()
566 phy_ctrl |= PhyCtrlSpd10; in _sc92031_phy_reset()
569 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd10; in _sc92031_phy_reset()
572 phy_ctrl |= PhyCtrlSpd100; in _sc92031_phy_reset()
575 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100; in _sc92031_phy_reset()
579 iowrite32(phy_ctrl, port_base + PhyCtrl); in _sc92031_phy_reset()
582 phy_ctrl &= ~PhyCtrlReset; in _sc92031_phy_reset()
583 iowrite32(phy_ctrl, port_base + PhyCtrl); in _sc92031_phy_reset()
1124 u32 phy_ctrl; in sc92031_ethtool_get_link_ksettings() local
1131 phy_ctrl = ioread32(port_base + PhyCtrl); in sc92031_ethtool_get_link_ksettings()
1144 if ((phy_ctrl & (PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10)) in sc92031_ethtool_get_link_ksettings()
1148 if ((phy_ctrl & PhyCtrlSpd10) == PhyCtrlSpd10) in sc92031_ethtool_get_link_ksettings()
1151 if ((phy_ctrl & (PhyCtrlSpd10 | PhyCtrlDux)) in sc92031_ethtool_get_link_ksettings()
1155 if ((phy_ctrl & PhyCtrlSpd100) == PhyCtrlSpd100) in sc92031_ethtool_get_link_ksettings()
1158 if ((phy_ctrl & (PhyCtrlSpd100 | PhyCtrlDux)) in sc92031_ethtool_get_link_ksettings()
1162 if (phy_ctrl & PhyCtrlAne) in sc92031_ethtool_get_link_ksettings()
1169 cmd->base.autoneg = (phy_ctrl & PhyCtrlAne) ? in sc92031_ethtool_get_link_ksettings()
1187 u32 phy_ctrl; in sc92031_ethtool_set_link_ksettings() local
1215 phy_ctrl = PhyCtrlAne; in sc92031_ethtool_set_link_ksettings()
1219 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10; in sc92031_ethtool_set_link_ksettings()
1221 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100; in sc92031_ethtool_set_link_ksettings()
1223 phy_ctrl |= PhyCtrlSpd100; in sc92031_ethtool_set_link_ksettings()
1225 phy_ctrl |= PhyCtrlSpd10 | PhyCtrlDux; in sc92031_ethtool_set_link_ksettings()
1227 phy_ctrl |= PhyCtrlSpd10; in sc92031_ethtool_set_link_ksettings()
1230 phy_ctrl = 0; in sc92031_ethtool_set_link_ksettings()
1233 phy_ctrl |= PhyCtrlSpd10; in sc92031_ethtool_set_link_ksettings()
1235 phy_ctrl |= PhyCtrlSpd100; in sc92031_ethtool_set_link_ksettings()
1238 phy_ctrl |= PhyCtrlDux; in sc92031_ethtool_set_link_ksettings()
1244 phy_ctrl |= old_phy_ctrl & ~(PhyCtrlAne | PhyCtrlDux in sc92031_ethtool_set_link_ksettings()
1246 if (phy_ctrl != old_phy_ctrl) in sc92031_ethtool_set_link_ksettings()
1247 iowrite32(phy_ctrl, port_base + PhyCtrl); in sc92031_ethtool_set_link_ksettings()