Lines Matching full:mmd

182 /* Reset the PMA/PMD MMD. The documentation is explicit that this does a
204 /* Run a single BIST on one MMD */
205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one() argument
219 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
223 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
226 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, in txc_bist_one()
234 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
238 bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL); in txc_bist_one()
243 int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); in txc_bist_one()
249 count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); in txc_bist_one()
261 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0); in txc_bist_one()
359 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) in txc_glrgs_lane_power() argument
362 int ctl = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_glrgs_lane_power()
369 ef4_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, ctl); in txc_glrgs_lane_power()
373 static void txc_analog_lane_power(struct ef4_nic *efx, int mmd) in txc_analog_lane_power() argument
379 int txctl = ef4_mdio_read(efx, mmd, TXC_ALRGS_ATXCTL); in txc_analog_lane_power()
380 int rxctl = ef4_mdio_read(efx, mmd, TXC_ALRGS_ARXCTL); in txc_analog_lane_power()
390 ef4_mdio_write(efx, mmd, TXC_ALRGS_ATXCTL, txctl); in txc_analog_lane_power()
391 ef4_mdio_write(efx, mmd, TXC_ALRGS_ARXCTL, rxctl); in txc_analog_lane_power()
411 static void txc_reset_logic_mmd(struct ef4_nic *efx, int mmd) in txc_reset_logic_mmd() argument
413 int val = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_reset_logic_mmd()
417 ef4_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, val); in txc_reset_logic_mmd()
419 val = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_reset_logic_mmd()