Lines Matching refs:phy_id
221 static int mdio_read(struct net_device *net_dev, int phy_id, int location);
222 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val);
772 sis_priv->mii_info.phy_id = sis_priv->cur_phy;
894 * @phy_id: the phy address to read
902 static int mdio_read(struct net_device *net_dev, int phy_id, int location)
904 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift);
938 * @phy_id: the phy address to write
947 static void mdio_write(struct net_device *net_dev, int phy_id, int location,
950 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift);
2235 data->phy_id = sis_priv->mii->phy_addr;
2239 data->val_out = mdio_read(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f);
2243 mdio_write(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in);