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

/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
H A Dthunder_bgx.c49 int lmac_type; member in struct:bgx
419 static int bgx_lmac_xaui_init(struct bgx *bgx, int lmacid, int lmac_type) bgx_lmac_xaui_init() argument
437 if (bgx->lmac_type != BGX_MODE_RXAUI) bgx_lmac_xaui_init()
475 if (bgx->lmac_type == BGX_MODE_10G_KR) bgx_lmac_xaui_init()
477 else if (bgx->lmac_type == BGX_MODE_40G_KR) bgx_lmac_xaui_init()
512 int lmac_type = bgx->lmac_type; bgx_xaui_check_link() local
534 if ((lmac_type == BGX_MODE_10G_KR) || (lmac_type == BGX_MODE_XFI) || bgx_xaui_check_link()
535 (lmac_type == BGX_MODE_40G_KR) || (lmac_type == BGX_MODE_XLAUI)) { bgx_xaui_check_link()
625 if (lmac->bgx->lmac_type == BGX_MODE_XLAUI) bgx_poll_for_link()
653 if (bgx->lmac_type == BGX_MODE_SGMII) { bgx_lmac_enable()
659 if (bgx_lmac_xaui_init(bgx, lmacid, bgx->lmac_type)) bgx_lmac_enable()
681 if ((bgx->lmac_type != BGX_MODE_XFI) && bgx_lmac_enable()
682 (bgx->lmac_type != BGX_MODE_XLAUI) && bgx_lmac_enable()
683 (bgx->lmac_type != BGX_MODE_40G_KR) && bgx_lmac_enable()
684 (bgx->lmac_type != BGX_MODE_10G_KR)) { bgx_lmac_enable()
725 if ((bgx->lmac_type != BGX_MODE_XFI) && bgx_lmac_disable()
726 (bgx->lmac_type != BGX_MODE_XLAUI) && bgx_lmac_disable()
727 (bgx->lmac_type != BGX_MODE_40G_KR) && bgx_lmac_disable()
728 (bgx->lmac_type != BGX_MODE_10G_KR) && lmac->phydev) bgx_lmac_disable()
741 bgx->lmac_type = BGX_MODE_SGMII; bgx_set_num_ports()
746 bgx->lmac_type = BGX_MODE_XAUI; bgx_set_num_ports()
751 bgx->lmac_type = BGX_MODE_RXAUI; bgx_set_num_ports()
756 bgx->lmac_type = BGX_MODE_XFI; bgx_set_num_ports()
761 bgx->lmac_type = BGX_MODE_XLAUI; bgx_set_num_ports()
766 bgx->lmac_type = BGX_MODE_10G_KR; bgx_set_num_ports()
772 bgx->lmac_type = BGX_MODE_40G_KR; bgx_set_num_ports()
802 if (bgx->lmac_type == BGX_MODE_RXAUI) { bgx_init_hw()
808 (bgx->lmac_type << 8) | bgx->lane_to_sds); bgx_init_hw()
812 (bgx->lmac_type << 8) | (bgx->lane_to_sds + i)); bgx_init_hw()
838 int lmac_type; bgx_get_qlm_mode() local
844 lmac_type = bgx_reg_read(bgx, 0, BGX_CMRX_CFG); bgx_get_qlm_mode()
845 lmac_type = (lmac_type >> 8) & 0x07; bgx_get_qlm_mode()
850 switch (lmac_type) { bgx_get_qlm_mode()

Completed in 67 milliseconds