Lines Matching refs:mdio_read

221 static int mdio_read(struct net_device *net_dev, int phy_id, int location);
520 sis_priv->mii_info.mdio_read = mdio_read; in sis900_probe()
623 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); 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()
697 poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS) & poll_bit); 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()
774 status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL); in sis900_default_phy()
778 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_default_phy()
779 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); 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()
902 static int mdio_read(struct net_device *net_dev, int phy_id, int location) in mdio_read() function
1007 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_reset_phy()
1255 reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1259 eq_value = (0x00F8 & mdio_read(net_dev, in sis630_set_eq()
1290 reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1295 reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1324 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_timer()
1325 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_timer()
1465 status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_auto_negotiate()
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()
2239 data->val_out = mdio_read(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f); in mii_ioctl()
2285 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2308 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()
2329 status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); in sis900_set_config()