• Home
  • Raw
  • Download

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);
604 int phy_addr; in sis900_mii_probe() local
609 for (phy_addr = 0; phy_addr < 32; phy_addr++) { in sis900_mii_probe()
616 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
622 dev_name, phy_addr); in sis900_mii_probe()
637 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe()
638 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe()
639 mii_phy->phy_addr = phy_addr; in sis900_mii_probe()
656 phy_addr); in sis900_mii_probe()
662 dev_name, phy_addr); in sis900_mii_probe()
733 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
734 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
741 status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL); in sis900_default_phy()
742 mdio_write(net_dev, phy->phy_addr, MII_CONTROL, in sis900_default_phy()
760 sis_priv->cur_phy = default_phy->phy_addr; in sis900_default_phy()
792 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_set_capability()
793 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_set_capability()
801 mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); in sis900_set_capability()
995 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr) in sis900_reset_phy() argument
1001 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_reset_phy()
1003 mdio_write( net_dev, phy_addr, MII_CONTROL, MII_CNTL_RESET ); in sis900_reset_phy()
1450 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr) in sis900_auto_negotiate() argument
1457 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_auto_negotiate()
1468 mdio_write(net_dev, phy_addr, MII_CONTROL, in sis900_auto_negotiate()
1489 int phy_addr = sis_priv->cur_phy; in sis900_read_mode() local
1495 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_read_mode()
1501 autoadv = mdio_read(net_dev, phy_addr, MII_ANADV); in sis900_read_mode()
1502 autorec = mdio_read(net_dev, phy_addr, MII_ANLPAR); in sis900_read_mode()
1517 if (mdio_read(net_dev, phy_addr, MII_CONTROL) & MII_CNTL_FDX) in sis900_read_mode()
1519 if (mdio_read(net_dev, phy_addr, 0x0019) & 0x01) in sis900_read_mode()
2221 data->phy_id = sis_priv->mii->phy_addr; in mii_ioctl()
2271 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2277 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2294 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2297 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2315 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2316 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()