Lines Matching refs:phy_ctrl
555 u32 phy_ctrl; in _sc92031_phy_reset() local
557 phy_ctrl = ioread32(port_base + PhyCtrl); in _sc92031_phy_reset()
558 phy_ctrl &= ~(PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10); in _sc92031_phy_reset()
559 phy_ctrl |= PhyCtrlAne | PhyCtrlReset; in _sc92031_phy_reset()
564 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10; in _sc92031_phy_reset()
567 phy_ctrl |= PhyCtrlSpd10; in _sc92031_phy_reset()
570 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd10; in _sc92031_phy_reset()
573 phy_ctrl |= PhyCtrlSpd100; in _sc92031_phy_reset()
576 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100; in _sc92031_phy_reset()
580 iowrite32(phy_ctrl, port_base + PhyCtrl); in _sc92031_phy_reset()
583 phy_ctrl &= ~PhyCtrlReset; in _sc92031_phy_reset()
584 iowrite32(phy_ctrl, port_base + PhyCtrl); in _sc92031_phy_reset()
1131 u32 phy_ctrl; in sc92031_ethtool_get_settings() local
1137 phy_ctrl = ioread32(port_base + PhyCtrl); in sc92031_ethtool_get_settings()
1151 if ((phy_ctrl & (PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10)) in sc92031_ethtool_get_settings()
1155 if ((phy_ctrl & PhyCtrlSpd10) == PhyCtrlSpd10) in sc92031_ethtool_get_settings()
1158 if ((phy_ctrl & (PhyCtrlSpd10 | PhyCtrlDux)) in sc92031_ethtool_get_settings()
1162 if ((phy_ctrl & PhyCtrlSpd100) == PhyCtrlSpd100) in sc92031_ethtool_get_settings()
1165 if ((phy_ctrl & (PhyCtrlSpd100 | PhyCtrlDux)) in sc92031_ethtool_get_settings()
1169 if (phy_ctrl & PhyCtrlAne) in sc92031_ethtool_get_settings()
1178 cmd->autoneg = (phy_ctrl & PhyCtrlAne) ? AUTONEG_ENABLE : AUTONEG_DISABLE; in sc92031_ethtool_get_settings()
1189 u32 phy_ctrl; in sc92031_ethtool_set_settings() local
1213 phy_ctrl = PhyCtrlAne; in sc92031_ethtool_set_settings()
1217 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10; in sc92031_ethtool_set_settings()
1219 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100; in sc92031_ethtool_set_settings()
1221 phy_ctrl |= PhyCtrlSpd100; in sc92031_ethtool_set_settings()
1223 phy_ctrl |= PhyCtrlSpd10 | PhyCtrlDux; in sc92031_ethtool_set_settings()
1225 phy_ctrl |= PhyCtrlSpd10; in sc92031_ethtool_set_settings()
1228 phy_ctrl = 0; in sc92031_ethtool_set_settings()
1231 phy_ctrl |= PhyCtrlSpd10; in sc92031_ethtool_set_settings()
1233 phy_ctrl |= PhyCtrlSpd100; in sc92031_ethtool_set_settings()
1236 phy_ctrl |= PhyCtrlDux; in sc92031_ethtool_set_settings()
1242 phy_ctrl |= old_phy_ctrl & ~(PhyCtrlAne | PhyCtrlDux in sc92031_ethtool_set_settings()
1244 if (phy_ctrl != old_phy_ctrl) in sc92031_ethtool_set_settings()
1245 iowrite32(phy_ctrl, port_base + PhyCtrl); in sc92031_ethtool_set_settings()