Lines Matching defs:mii_phy
147 struct mii_phy {
148 struct mii_phy * next;
167 struct mii_phy * mii;
168 struct mii_phy * first_mii; /* record the first mii structure */
224 static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy);
241 static void sis900_set_capability( struct net_device *net_dev ,struct mii_phy *phy);
610 struct mii_phy * mii_phy = NULL;
614 mii_phy = NULL;
626 if ((mii_phy = kmalloc(sizeof(struct mii_phy), GFP_KERNEL)) == NULL) {
627 mii_phy = sis_priv->first_mii;
628 while (mii_phy) {
629 struct mii_phy *phy;
630 phy = mii_phy;
631 mii_phy = mii_phy->next;
637 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0);
638 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1);
639 mii_phy->phy_addr = phy_addr;
640 mii_phy->status = mii_status;
641 mii_phy->next = sis_priv->mii;
642 sis_priv->mii = mii_phy;
643 sis_priv->first_mii = mii_phy;
646 if ((mii_phy->phy_id0 == mii_chip_table[i].phy_id0 ) &&
647 ((mii_phy->phy_id1 & 0xFFF0) == mii_chip_table[i].phy_id1)){
648 mii_phy->phy_types = mii_chip_table[i].phy_types;
650 mii_phy->phy_types =
663 mii_phy->phy_types = UNKNOWN;
728 struct mii_phy *phy = NULL, *phy_home = NULL,
787 static void sis900_set_capability(struct net_device *net_dev, struct mii_phy *phy)
1312 struct mii_phy *mii_phy = sis_priv->mii;
1325 mii_phy = sis_priv->mii;
1345 if ((mii_phy->phy_id0 == 0x001D) &&
1346 ((mii_phy->phy_id1 & 0xFFF0) == 0x8000))
1362 * @mii_phy: the mii phy
1371 static void sis900_check_mode(struct net_device *net_dev, struct mii_phy *mii_phy)
1377 if (mii_phy->phy_types == LAN) {
1379 sis900_set_capability(net_dev , mii_phy);
1489 struct mii_phy *phy = sis_priv->mii;
2256 struct mii_phy *mii_phy = sis_priv->mii;
2278 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL);
2284 mdio_write(dev, mii_phy->phy_addr,
2301 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL);
2304 mdio_write(dev, mii_phy->phy_addr,
2322 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL);
2323 mdio_write(dev, mii_phy->phy_addr,
2488 struct mii_phy *phy = sis_priv->first_mii;