Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.c58 u8 lmac_count; member
125 return cgx->lmac_count; in cgx_get_lmac_cnt()
204 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_set_pkind()
227 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_lmac_internal_loopback()
288 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_get_rx_stats()
299 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_get_tx_stats()
311 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_lmac_rx_tx_enable()
668 if (!cgx->lmac_count) in cgx_lmac_verify_fwi_version()
693 for (i = 0; i < cgx->lmac_count; i++) { in cgx_lmac_linkup_work()
719 cgx->lmac_count = cgx_read(cgx, 0, CGXX_CMRX_RX_LMACS) & 0x7; in cgx_lmac_init()
[all …]
/Linux-v5.4/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.c70 u8 lmac_count; member
80 static int lmac_count; /* Total no of LMACs in system */ variable
198 return bgx->lmac_count; in bgx_get_lmac_count()
1080 lmac->dmacs_count = (RX_DMAC_COUNT / bgx->lmac_count); in bgx_lmac_enable()
1194 for (i = 0; i < bgx->lmac_count; i++) { in bgx_init_hw()
1198 bgx->lmac[i].lmacid_bd = lmac_count; in bgx_init_hw()
1199 lmac_count++; in bgx_init_hw()
1202 bgx_reg_write(bgx, 0, BGX_CMR_TX_LMACS, bgx->lmac_count); in bgx_init_hw()
1203 bgx_reg_write(bgx, 0, BGX_CMR_RX_LMACS, bgx->lmac_count); in bgx_init_hw()
1206 for (i = 0; i < bgx->lmac_count; i++) in bgx_init_hw()
[all …]