Searched refs:lmac_count (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
H A D | thunder_bgx.c | 48 int lmac_count; member in struct:bgx 57 static int lmac_count; /* Total no of LMACs in system */ variable 143 return bgx->lmac_count; bgx_get_lmac_count() 500 /* take lmac_count into account */ bgx_lmac_xaui_init() 736 u64 lmac_count; bgx_set_num_ports() local 740 bgx->lmac_count = 4; bgx_set_num_ports() 745 bgx->lmac_count = 1; bgx_set_num_ports() 750 bgx->lmac_count = 2; bgx_set_num_ports() 755 bgx->lmac_count = 4; bgx_set_num_ports() 760 bgx->lmac_count = 1; bgx_set_num_ports() 765 bgx->lmac_count = 4; bgx_set_num_ports() 771 bgx->lmac_count = 1; bgx_set_num_ports() 777 bgx->lmac_count = 0; bgx_set_num_ports() 785 lmac_count = bgx_reg_read(bgx, 0, BGX_CMR_RX_LMACS) & 0x7; bgx_set_num_ports() 786 if (lmac_count != 4) bgx_set_num_ports() 787 bgx->lmac_count = lmac_count; bgx_set_num_ports() 801 for (i = 0; i < bgx->lmac_count; i++) { bgx_init_hw() 813 bgx->lmac[i].lmacid_bd = lmac_count; bgx_init_hw() 814 lmac_count++; 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() 821 for (i = 0; i < bgx->lmac_count; i++) bgx_init_hw() 919 acpi_get_mac_address(adev, bgx->lmac[bgx->lmac_count].mac); bgx_acpi_register_phy() 921 SET_NETDEV_DEV(&bgx->lmac[bgx->lmac_count].netdev, &bgx->pdev->dev); bgx_acpi_register_phy() 923 bgx->lmac[bgx->lmac_count].lmacid = bgx->lmac_count; bgx_acpi_register_phy() 925 bgx->lmac_count++; bgx_acpi_register_phy() 1072 for (lmac = 0; lmac < bgx->lmac_count; lmac++) { bgx_probe() 1099 for (lmac = 0; lmac < bgx->lmac_count; lmac++) bgx_remove()
|
Completed in 59 milliseconds