Lines Matching refs:devad
67 int prtad, int devad, u16 addr, int mask, in mdio_set_flag() argument
70 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag()
81 return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val); in mdio_set_flag()
96 int devad, reg; in mdio45_links_ok() local
105 for (devad = 0; mmd_mask; devad++) { in mdio45_links_ok()
106 if (mmd_mask & (1 << devad)) { in mdio45_links_ok()
107 mmd_mask &= ~(1 << devad); in mdio45_links_ok()
111 devad, MDIO_STAT1); in mdio45_links_ok()
112 if (devad == MDIO_MMD_PMAPMD || devad == MDIO_MMD_PCS || in mdio45_links_ok()
113 devad == MDIO_MMD_PHYXS || devad == MDIO_MMD_DTEXS) in mdio45_links_ok()
115 devad, MDIO_STAT2); in mdio45_links_ok()
119 devad, MDIO_STAT1); in mdio45_links_ok()
530 int prtad, devad; in mdio_mii_ioctl() local
552 devad = mdio_phy_id_devad(mii_data->phy_id); in mdio_mii_ioctl()
556 devad = MDIO_DEVAD_NONE; in mdio_mii_ioctl()
568 devad = __ffs(mdio->mmds); in mdio_mii_ioctl()
574 devad = MDIO_MMD_AN; in mdio_mii_ioctl()
588 int rc = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_mii_ioctl()
594 return mdio->mdio_write(mdio->dev, prtad, devad, addr, in mdio_mii_ioctl()