Lines Matching refs:phy_addr
149 int phy_addr; member
240 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr);
241 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr);
601 int phy_addr; in sis900_mii_probe() local
606 for (phy_addr = 0; phy_addr < 32; phy_addr++) { in sis900_mii_probe()
613 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
619 dev_name, phy_addr); in sis900_mii_probe()
634 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe()
635 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe()
636 mii_phy->phy_addr = phy_addr; in sis900_mii_probe()
653 phy_addr); in sis900_mii_probe()
659 dev_name, phy_addr); in sis900_mii_probe()
730 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
731 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
738 status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL); in sis900_default_phy()
739 mdio_write(net_dev, phy->phy_addr, MII_CONTROL, in sis900_default_phy()
757 sis_priv->cur_phy = default_phy->phy_addr; in sis900_default_phy()
789 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_set_capability()
790 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_set_capability()
798 mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); in sis900_set_capability()
992 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr) in sis900_reset_phy() argument
998 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_reset_phy()
1000 mdio_write( net_dev, phy_addr, MII_CONTROL, MII_CNTL_RESET ); in sis900_reset_phy()
1449 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr) in sis900_auto_negotiate() argument
1456 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_auto_negotiate()
1467 mdio_write(net_dev, phy_addr, MII_CONTROL, in sis900_auto_negotiate()
1488 int phy_addr = sis_priv->cur_phy; in sis900_read_mode() local
1494 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_read_mode()
1500 autoadv = mdio_read(net_dev, phy_addr, MII_ANADV); in sis900_read_mode()
1501 autorec = mdio_read(net_dev, phy_addr, MII_ANLPAR); in sis900_read_mode()
1516 if (mdio_read(net_dev, phy_addr, MII_CONTROL) & MII_CNTL_FDX) in sis900_read_mode()
1518 if (mdio_read(net_dev, phy_addr, 0x0019) & 0x01) in sis900_read_mode()
2156 data->phy_id = sis_priv->mii->phy_addr; in mii_ioctl()
2206 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2212 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2229 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2232 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2250 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2251 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()