Home
last modified time | relevance | path

Searched refs:cmr_cfg (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/ethernet/cavium/thunder/
H A Dthunder_bgx.c506 u64 cmr_cfg; in bgx_sgmii_change_link_state() local
511 cmr_cfg = bgx_reg_read(bgx, lmac->lmacid, BGX_CMRX_CFG); in bgx_sgmii_change_link_state()
512 tx_en = cmr_cfg & CMR_PKT_TX_EN; in bgx_sgmii_change_link_state()
513 rx_en = cmr_cfg & CMR_PKT_RX_EN; in bgx_sgmii_change_link_state()
514 cmr_cfg &= ~(CMR_PKT_RX_EN | CMR_PKT_TX_EN); in bgx_sgmii_change_link_state()
515 bgx_reg_write(bgx, lmac->lmacid, BGX_CMRX_CFG, cmr_cfg); in bgx_sgmii_change_link_state()
584 cmr_cfg |= (rx_en ? CMR_PKT_RX_EN : 0) | (tx_en ? CMR_PKT_TX_EN : 0); in bgx_sgmii_change_link_state()
585 bgx_reg_write(bgx, lmac->lmacid, BGX_CMRX_CFG, cmr_cfg); in bgx_sgmii_change_link_state()
587 if (bgx->is_rgx && (cmr_cfg & (CMR_PKT_RX_EN | CMR_PKT_TX_EN))) in bgx_sgmii_change_link_state()
1325 u64 cmr_cfg; in bgx_set_lmac_config() local
[all …]