Lines Matching refs:mii_phy

146 struct mii_phy {  struct
147 struct mii_phy * next; argument
166 struct mii_phy * mii; argument
167 struct mii_phy * first_mii; /* record the first mii structure */
214 static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy);
231 static void sis900_set_capability( struct net_device *net_dev ,struct mii_phy *phy);
605 struct mii_phy * mii_phy = NULL; in sis900_mii_probe() local
609 mii_phy = NULL; in sis900_mii_probe()
621 if ((mii_phy = kmalloc(sizeof(struct mii_phy), GFP_KERNEL)) == NULL) { in sis900_mii_probe()
623 mii_phy = sis_priv->first_mii; in sis900_mii_probe()
624 while (mii_phy) { in sis900_mii_probe()
625 struct mii_phy *phy; in sis900_mii_probe()
626 phy = mii_phy; in sis900_mii_probe()
627 mii_phy = mii_phy->next; in sis900_mii_probe()
633 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe()
634 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe()
635 mii_phy->phy_addr = phy_addr; in sis900_mii_probe()
636 mii_phy->status = mii_status; in sis900_mii_probe()
637 mii_phy->next = sis_priv->mii; in sis900_mii_probe()
638 sis_priv->mii = mii_phy; in sis900_mii_probe()
639 sis_priv->first_mii = mii_phy; in sis900_mii_probe()
642 if ((mii_phy->phy_id0 == mii_chip_table[i].phy_id0 ) && in sis900_mii_probe()
643 ((mii_phy->phy_id1 & 0xFFF0) == mii_chip_table[i].phy_id1)){ in sis900_mii_probe()
644 mii_phy->phy_types = mii_chip_table[i].phy_types; in sis900_mii_probe()
646 mii_phy->phy_types = in sis900_mii_probe()
659 mii_phy->phy_types = UNKNOWN; in sis900_mii_probe()
724 struct mii_phy *phy = NULL, *phy_home = NULL, in sis900_default_phy()
783 static void sis900_set_capability(struct net_device *net_dev, struct mii_phy *phy) in sis900_set_capability()
1293 struct mii_phy *mii_phy = sis_priv->mii; in sis900_timer() local
1320 mii_phy = sis_priv->mii; in sis900_timer()
1323 sis900_check_mode(net_dev, mii_phy); in sis900_timer()
1334 if ((mii_phy->phy_id0 == 0x001D) && in sis900_timer()
1335 ((mii_phy->phy_id1 & 0xFFF0) == 0x8000)) in sis900_timer()
1360 static void sis900_check_mode(struct net_device *net_dev, struct mii_phy *mii_phy) in sis900_check_mode() argument
1366 if (mii_phy->phy_types == LAN) { in sis900_check_mode()
1368 sis900_set_capability(net_dev , mii_phy); in sis900_check_mode()
1477 struct mii_phy *phy = sis_priv->mii; in sis900_read_mode()
2161 struct mii_phy *mii_phy = sis_priv->mii; in sis900_set_config() local
2183 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2189 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2206 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2209 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2227 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2228 mdio_write(dev, mii_phy->phy_addr, in sis900_set_config()
2391 struct mii_phy *phy = NULL; in sis900_remove()