Lines Matching refs:phy_addr

149 	int phy_addr;  member
242 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr);
243 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr);
611 int phy_addr; in sis900_mii_probe() local
616 for (phy_addr = 0; phy_addr < 32; phy_addr++) { in sis900_mii_probe()
623 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
629 dev_name, phy_addr); in sis900_mii_probe()
644 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe()
645 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe()
646 mii_phy->phy_addr = phy_addr; in sis900_mii_probe()
663 phy_addr); in sis900_mii_probe()
669 dev_name, phy_addr); in sis900_mii_probe()
740 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
741 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
748 status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL); in sis900_default_phy()
749 mdio_write(net_dev, phy->phy_addr, MII_CONTROL, in sis900_default_phy()
767 sis_priv->cur_phy = default_phy->phy_addr; in sis900_default_phy()
798 mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_set_capability()
799 mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_set_capability()
807 mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); in sis900_set_capability()
1001 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr) in sis900_reset_phy() argument
1007 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_reset_phy()
1009 mdio_write( net_dev, phy_addr, MII_CONTROL, MII_CNTL_RESET ); in sis900_reset_phy()
1458 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr) in sis900_auto_negotiate() argument
1465 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_auto_negotiate()
1476 mdio_write(net_dev, phy_addr, MII_CONTROL, in sis900_auto_negotiate()
1497 int phy_addr = sis_priv->cur_phy; in sis900_read_mode() local
1503 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_read_mode()
1509 autoadv = mdio_read(net_dev, phy_addr, MII_ANADV); in sis900_read_mode()
1510 autorec = mdio_read(net_dev, phy_addr, MII_ANLPAR); in sis900_read_mode()
1525 if (mdio_read(net_dev, phy_addr, MII_CONTROL) & MII_CNTL_FDX) in sis900_read_mode()
1527 if (mdio_read(net_dev, phy_addr, 0x0019) & 0x01) in sis900_read_mode()
2235 data->phy_id = sis_priv->mii->phy_addr; in mii_ioctl()
2285 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2291 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2308 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2311 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2329 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2330 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()