Lines Matching refs:mmd
208 static int txc_bist_one(struct efx_nic *efx, int mmd, int test) in txc_bist_one() argument
222 efx_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
226 efx_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
229 efx_mdio_write(efx, mmd, TXC_BIST_CTL, in txc_bist_one()
237 efx_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
241 bctl = efx_mdio_read(efx, mmd, TXC_BIST_CTL); in txc_bist_one()
246 int count = efx_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); in txc_bist_one()
252 count = efx_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); in txc_bist_one()
264 efx_mdio_write(efx, mmd, TXC_BIST_CTL, 0); in txc_bist_one()
362 static void txc_glrgs_lane_power(struct efx_nic *efx, int mmd) in txc_glrgs_lane_power() argument
365 int ctl = efx_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_glrgs_lane_power()
372 efx_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, ctl); in txc_glrgs_lane_power()
376 static void txc_analog_lane_power(struct efx_nic *efx, int mmd) in txc_analog_lane_power() argument
382 int txctl = efx_mdio_read(efx, mmd, TXC_ALRGS_ATXCTL); in txc_analog_lane_power()
383 int rxctl = efx_mdio_read(efx, mmd, TXC_ALRGS_ARXCTL); in txc_analog_lane_power()
393 efx_mdio_write(efx, mmd, TXC_ALRGS_ATXCTL, txctl); in txc_analog_lane_power()
394 efx_mdio_write(efx, mmd, TXC_ALRGS_ARXCTL, rxctl); in txc_analog_lane_power()
414 static void txc_reset_logic_mmd(struct efx_nic *efx, int mmd) in txc_reset_logic_mmd() argument
416 int val = efx_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_reset_logic_mmd()
420 efx_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, val); in txc_reset_logic_mmd()
422 val = efx_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_reset_logic_mmd()