Lines Matching refs:mmd
34 int efx_mdio_reset_mmd(struct efx_nic *port, int mmd, in efx_mdio_reset_mmd() argument
42 efx_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); in efx_mdio_reset_mmd()
46 ctrl = efx_mdio_read(port, mmd, MDIO_CTRL1); in efx_mdio_reset_mmd()
54 static int efx_mdio_check_mmd(struct efx_nic *efx, int mmd) in efx_mdio_check_mmd() argument
58 if (mmd != MDIO_MMD_AN) { in efx_mdio_check_mmd()
60 status = efx_mdio_read(efx, mmd, MDIO_STAT2); in efx_mdio_check_mmd()
63 "PHY MMD %d not responding.\n", mmd); in efx_mdio_check_mmd()
84 int mmd = 0; in efx_mdio_wait_reset_mmds() local
89 stat = efx_mdio_read(efx, mmd, MDIO_CTRL1); in efx_mdio_wait_reset_mmds()
93 " MMD %d\n", mmd); in efx_mdio_wait_reset_mmds()
97 in_reset |= (1 << mmd); in efx_mdio_wait_reset_mmds()
100 mmd++; in efx_mdio_wait_reset_mmds()
118 int mmd = 0, probe_mmd, devs1, devs2; in efx_mdio_check_mmds() local
146 if ((mmd_mask & 1) && efx_mdio_check_mmd(efx, mmd)) in efx_mdio_check_mmds()
149 mmd++; in efx_mdio_check_mmds()
202 int lpower, int mmd) in efx_mdio_set_mmd_lpower() argument
204 int stat = efx_mdio_read(efx, mmd, MDIO_STAT1); in efx_mdio_set_mmd_lpower()
207 mmd, lpower); in efx_mdio_set_mmd_lpower()
210 efx_mdio_set_flag(efx, mmd, MDIO_CTRL1, in efx_mdio_set_mmd_lpower()
218 int mmd = 0; in efx_mdio_set_mmds_lpower() local
222 efx_mdio_set_mmd_lpower(efx, low_power, mmd); in efx_mdio_set_mmds_lpower()
224 mmd++; in efx_mdio_set_mmds_lpower()