Lines Matching refs:mmd
205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test)
219 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl);
223 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl);
226 ef4_mdio_write(efx, mmd, TXC_BIST_CTL,
234 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl);
238 bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL);
243 int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane);
249 count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane);
261 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0);
359 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd)
362 int ctl = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD);
369 ef4_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, ctl);
373 static void txc_analog_lane_power(struct ef4_nic *efx, int mmd)
379 int txctl = ef4_mdio_read(efx, mmd, TXC_ALRGS_ATXCTL);
380 int rxctl = ef4_mdio_read(efx, mmd, TXC_ALRGS_ARXCTL);
390 ef4_mdio_write(efx, mmd, TXC_ALRGS_ATXCTL, txctl);
391 ef4_mdio_write(efx, mmd, TXC_ALRGS_ARXCTL, rxctl);
411 static void txc_reset_logic_mmd(struct ef4_nic *efx, int mmd)
413 int val = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD);
417 ef4_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, val);
419 val = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD);