Searched refs:bgx_reg_write (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
H A Dthunder_bgx.c90 static void bgx_reg_write(struct bgx *bgx, u8 lmac, u64 offset, u64 val) bgx_reg_write() function
202 bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); bgx_lmac_rx_tx_enable()
215 bgx_reg_write(bgx, lmac->lmacid, BGX_CMRX_CFG, cmr_cfg); bgx_sgmii_change_link_state()
235 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_SLOT, 64); bgx_sgmii_change_link_state()
236 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_BURST, 0); bgx_sgmii_change_link_state()
244 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_SLOT, 64); bgx_sgmii_change_link_state()
245 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_BURST, 0); bgx_sgmii_change_link_state()
253 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_SLOT, 512); bgx_sgmii_change_link_state()
255 bgx_reg_write(bgx, lmac->lmacid, bgx_sgmii_change_link_state()
258 bgx_reg_write(bgx, lmac->lmacid, bgx_sgmii_change_link_state()
264 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_PCS_MISCX_CTL, misc_ctl); bgx_sgmii_change_link_state()
265 bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_PRTX_CFG, port_cfg); bgx_sgmii_change_link_state()
271 bgx_reg_write(bgx, lmac->lmacid, BGX_CMRX_CFG, cmr_cfg); bgx_sgmii_change_link_state()
344 bgx_reg_write(bgx, 0, BGX_CMR_RX_DMACX_CAM + offset, 0); bgx_flush_dmac_addrs()
368 bgx_reg_write(bgx, lmac_idx, BGX_GMP_PCS_MRX_CTL, cfg); bgx_lmac_internal_loopback()
375 bgx_reg_write(bgx, lmac_idx, BGX_SPUX_CONTROL1, cfg); bgx_lmac_internal_loopback()
391 bgx_reg_write(bgx, lmacid, BGX_GMP_GMI_TXX_SGMII_CTL, 0); bgx_lmac_sgmii_init()
408 bgx_reg_write(bgx, lmacid, BGX_GMP_PCS_MRX_CTL, cfg); bgx_lmac_sgmii_init()
433 bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); bgx_lmac_xaui_init()
446 bgx_reg_write(bgx, lmacid, BGX_SMUX_RX_INT, cfg); bgx_lmac_xaui_init()
448 bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_INT, cfg); bgx_lmac_xaui_init()
450 bgx_reg_write(bgx, lmacid, BGX_SPUX_INT, cfg); bgx_lmac_xaui_init()
453 bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LP_CUP, 0x00); bgx_lmac_xaui_init()
454 bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LD_CUP, 0x00); bgx_lmac_xaui_init()
455 bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LD_REP, 0x00); bgx_lmac_xaui_init()
467 bgx_reg_write(bgx, lmacid, BGX_SPUX_FEC_CONTROL, cfg); bgx_lmac_xaui_init()
472 bgx_reg_write(bgx, lmacid, BGX_SPUX_AN_CONTROL, cfg); bgx_lmac_xaui_init()
482 bgx_reg_write(bgx, lmacid, BGX_SPUX_AN_ADV, cfg); bgx_lmac_xaui_init()
486 bgx_reg_write(bgx, 0, BGX_SPU_DBG_CONTROL, cfg); bgx_lmac_xaui_init()
493 bgx_reg_write(bgx, lmacid, BGX_SPUX_CONTROL1, cfg); bgx_lmac_xaui_init()
498 bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_CTL, cfg); bgx_lmac_xaui_init()
520 bgx_reg_write(bgx, lmacid, BGX_SPUX_INT, cfg); bgx_xaui_check_link()
523 bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_CRTL, cfg); bgx_xaui_check_link()
559 bgx_reg_write(bgx, lmacid, BGX_SPUX_INT, cfg); bgx_xaui_check_link()
563 bgx_reg_write(bgx, lmacid, bgx_xaui_check_link()
605 bgx_reg_write(bgx, lmacid, BGX_SPUX_MISC_CONTROL, cfg); bgx_xaui_check_link()
667 bgx_reg_write(bgx, lmacid, BGX_GMP_GMI_TXX_MIN_PKT, 60 - 1); bgx_lmac_enable()
672 bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_MIN_PKT, 60 + 4); bgx_lmac_enable()
679 bgx_reg_write(bgx, lmacid, BGX_CMRX_RX_DMAC_CTL, 0x03); bgx_lmac_enable()
722 bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cmrx_cfg); bgx_lmac_disable()
807 bgx_reg_write(bgx, i, BGX_CMRX_CFG, bgx_init_hw()
811 bgx_reg_write(bgx, i, BGX_CMRX_CFG, bgx_init_hw()
817 bgx_reg_write(bgx, 0, BGX_CMR_TX_LMACS, bgx->lmac_count); bgx_init_hw()
818 bgx_reg_write(bgx, 0, BGX_CMR_RX_LMACS, bgx->lmac_count); bgx_init_hw()
828 bgx_reg_write(bgx, 0, BGX_CMR_RX_DMACX_CAM + (i * 8), 0x00); bgx_init_hw()
832 bgx_reg_write(bgx, 0, BGX_CMR_RX_STREERING + (i * 8), 0x00); bgx_init_hw()

Completed in 77 milliseconds