Lines Matching refs:cur_phy
154 unsigned int cur_phy; member
598 status = sis900_reset_phy(net_dev, sis_priv->cur_phy); in sis900_mii_probe()
603 mdio_write(net_dev, sis_priv->cur_phy, 0x0018, 0xD200); in sis900_mii_probe()
609 poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS) & poll_bit); in sis900_mii_probe()
620 mdio_write(net_dev, sis_priv->cur_phy, MII_ANADV, 0x05e1); in sis900_mii_probe()
621 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG1, 0x22); in sis900_mii_probe()
622 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG2, 0xff00); in sis900_mii_probe()
623 mdio_write(net_dev, sis_priv->cur_phy, MII_MASK, 0xffc0); in sis900_mii_probe()
673 sis_priv->cur_phy = default_phy->phy_addr; in sis900_default_phy()
674 …RN_INFO "%s: Using transceiver found at address %d as default\n", net_dev->name,sis_priv->cur_phy); in sis900_default_phy()
677 status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL); in sis900_default_phy()
680 mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, status); in sis900_default_phy()
681 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_default_phy()
682 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_default_phy()
1132 reg14h=mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1133 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, (0x2200 | reg14h) & 0xBFFF); in sis630_set_eq()
1135 eq_value=(0x00F8 & mdio_read(net_dev, sis_priv->cur_phy, MII_RESV)) >> 3; in sis630_set_eq()
1161 reg14h=mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1164 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, reg14h); in sis630_set_eq()
1167 reg14h=mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1171 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, (reg14h | 0x2200) & 0xBFFF); in sis630_set_eq()
1173 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, (reg14h | 0x2000) & 0xBFFF); in sis630_set_eq()
1211 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_timer()
1212 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_timer()
1235 sis900_reset_phy(net_dev, sis_priv->cur_phy); in sis900_timer()
1269 sis900_auto_negotiate(net_dev, sis_priv->cur_phy); in sis900_check_mode()
1372 int phy_addr = sis_priv->cur_phy; in sis900_read_mode()