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);
617 struct mii_phy * mii_phy = NULL;
621 mii_phy = NULL;
633 if ((mii_phy = kmalloc(sizeof(struct mii_phy), GFP_KERNEL)) == NULL) {
634 mii_phy = sis_priv->first_mii;
635 while (mii_phy) {
636 struct mii_phy *phy;
637 phy = mii_phy;
638 mii_phy = mii_phy->next;
644 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0);
645 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1);
646 mii_phy->phy_addr = phy_addr;
647 mii_phy->status = mii_status;
648 mii_phy->next = sis_priv->mii;
649 sis_priv->mii = mii_phy;
650 sis_priv->first_mii = mii_phy;
653 if ((mii_phy->phy_id0 == mii_chip_table[i].phy_id0 ) &&
654 ((mii_phy->phy_id1 & 0xFFF0) == mii_chip_table[i].phy_id1)){
655 mii_phy->phy_types = mii_chip_table[i].phy_types;
657 mii_phy->phy_types =
670 mii_phy->phy_types = UNKNOWN;
735 struct mii_phy *phy = NULL, *phy_home = NULL,
794 static void sis900_set_capability(struct net_device *net_dev, struct mii_phy *phy)
1319 struct mii_phy *mii_phy = sis_priv->mii;
1332 mii_phy = sis_priv->mii;
1352 if ((mii_phy->phy_id0 == 0x001D) &&
1353 ((mii_phy->phy_id1 & 0xFFF0) == 0x8000))
1369 * @mii_phy: the mii phy
1378 static void sis900_check_mode(struct net_device *net_dev, struct mii_phy *mii_phy)
1384 if (mii_phy->phy_types == LAN) {
1386 sis900_set_capability(net_dev , mii_phy);
1496 struct mii_phy *phy = sis_priv->mii;
2263 struct mii_phy *mii_phy = sis_priv->mii;
2285 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL);
2291 mdio_write(dev, mii_phy->phy_addr,
2308 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL);
2311 mdio_write(dev, mii_phy->phy_addr,
2329 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL);
2330 mdio_write(dev, mii_phy->phy_addr,
2495 struct mii_phy *phy = sis_priv->first_mii;