Lines Matching full:mmd
31 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, in ef4_mdio_reset_mmd() argument
39 ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); in ef4_mdio_reset_mmd()
43 ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1); in ef4_mdio_reset_mmd()
51 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd() argument
55 if (mmd != MDIO_MMD_AN) { in ef4_mdio_check_mmd()
56 /* Read MMD STATUS2 to check it is responding. */ in ef4_mdio_check_mmd()
57 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); in ef4_mdio_check_mmd()
60 "PHY MMD %d not responding.\n", mmd); in ef4_mdio_check_mmd()
81 int mmd = 0; in ef4_mdio_wait_reset_mmds() local
86 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); in ef4_mdio_wait_reset_mmds()
90 " MMD %d\n", mmd); in ef4_mdio_wait_reset_mmds()
94 in_reset |= (1 << mmd); in ef4_mdio_wait_reset_mmds()
97 mmd++; in ef4_mdio_wait_reset_mmds()
115 int mmd = 0, probe_mmd, devs1, devs2; in ef4_mdio_check_mmds() local
143 if ((mmd_mask & 1) && ef4_mdio_check_mmd(efx, mmd)) in ef4_mdio_check_mmds()
146 mmd++; in ef4_mdio_check_mmds()
155 * of mmd's */ in ef4_mdio_links_ok()
199 int lpower, int mmd) in ef4_mdio_set_mmd_lpower() argument
201 int stat = ef4_mdio_read(efx, mmd, MDIO_STAT1); in ef4_mdio_set_mmd_lpower()
203 netif_vdbg(efx, drv, efx->net_dev, "Setting low power mode for MMD %d to %d\n", in ef4_mdio_set_mmd_lpower()
204 mmd, lpower); in ef4_mdio_set_mmd_lpower()
207 ef4_mdio_set_flag(efx, mmd, MDIO_CTRL1, in ef4_mdio_set_mmd_lpower()
215 int mmd = 0; in ef4_mdio_set_mmds_lpower() local
219 ef4_mdio_set_mmd_lpower(efx, low_power, mmd); in ef4_mdio_set_mmds_lpower()
221 mmd++; in ef4_mdio_set_mmds_lpower()