Lines Matching refs:mii_data
284 struct mii_ioctl_data *mii_data = if_mii(ifr); in phy_mii_ioctl() local
285 u16 val = mii_data->val_in; in phy_mii_ioctl()
291 mii_data->phy_id = phydev->mdio.addr; in phy_mii_ioctl()
295 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl()
296 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl()
297 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl()
298 devad = mdiobus_c45_addr(devad, mii_data->reg_num); in phy_mii_ioctl()
300 prtad = mii_data->phy_id; in phy_mii_ioctl()
301 devad = mii_data->reg_num; in phy_mii_ioctl()
303 mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad, in phy_mii_ioctl()
308 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl()
309 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl()
310 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl()
311 devad = mdiobus_c45_addr(devad, mii_data->reg_num); in phy_mii_ioctl()
313 prtad = mii_data->phy_id; in phy_mii_ioctl()
314 devad = mii_data->reg_num; in phy_mii_ioctl()