Lines Matching defs: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);
765 sis_priv->mii_info.phy_id = sis_priv->cur_phy;
887 * @phy_id: the phy address to read
895 static int mdio_read(struct net_device *net_dev, int phy_id, int location)
897 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift);
931 * @phy_id: the phy address to write
940 static void mdio_write(struct net_device *net_dev, int phy_id, int location,
943 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift);
2228 data->phy_id = sis_priv->mii->phy_addr;
2232 data->val_out = mdio_read(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f);
2236 mdio_write(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in);