Lines Matching refs:lmac_count
70 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()
1086 lmac->dmacs_count = (RX_DMAC_COUNT / bgx->lmac_count); in bgx_lmac_enable()
1200 for (i = 0; i < bgx->lmac_count; i++) { in bgx_init_hw()
1204 bgx->lmac[i].lmacid_bd = lmac_count; in bgx_init_hw()
1205 lmac_count++; in bgx_init_hw()
1208 bgx_reg_write(bgx, 0, BGX_CMR_TX_LMACS, bgx->lmac_count); in bgx_init_hw()
1209 bgx_reg_write(bgx, 0, BGX_CMR_RX_LMACS, bgx->lmac_count); in bgx_init_hw()
1212 for (i = 0; i < bgx->lmac_count; i++) in bgx_init_hw()
1374 bgx->lmac_count = bgx_reg_read(bgx, 0, BGX_CMR_RX_LMACS) & 0x7; in bgx_get_qlm_mode()
1375 if (bgx->lmac_count > bgx->max_lmac) in bgx_get_qlm_mode()
1376 bgx->lmac_count = bgx->max_lmac; in bgx_get_qlm_mode()
1378 for (idx = 0; idx < bgx->lmac_count; idx++) { in bgx_get_qlm_mode()
1547 for (lmac = 0; lmac < bgx->lmac_count; lmac++) { in bgx_intr_handler()
1654 for (lmac = 0; lmac < bgx->lmac_count; lmac++) { in bgx_probe()
1684 for (lmac = 0; lmac < bgx->lmac_count; lmac++) in bgx_remove()