Searched refs:total_vecs (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 4042 int i, total_vecs, rc = 0; in bnxt_setup_msix() local 4046 total_vecs = bp->cp_nr_rings; in bnxt_setup_msix() 4048 msix_ent = kcalloc(total_vecs, sizeof(struct msix_entry), GFP_KERNEL); in bnxt_setup_msix() 4052 for (i = 0; i < total_vecs; i++) { in bnxt_setup_msix() 4057 total_vecs = pci_enable_msix_range(bp->pdev, msix_ent, 1, total_vecs); in bnxt_setup_msix() 4058 if (total_vecs < 0) { in bnxt_setup_msix() 4063 bp->irq_tbl = kcalloc(total_vecs, sizeof(struct bnxt_irq), GFP_KERNEL); in bnxt_setup_msix() 4068 bp->rx_nr_rings = min_t(int, total_vecs, bp->rx_nr_rings); in bnxt_setup_msix() 4069 bp->tx_nr_rings = min_t(int, total_vecs, bp->tx_nr_rings); in bnxt_setup_msix()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 6259 int i, total_vecs; in bnx2_enable_msix() local 6278 total_vecs = msix_vecs; in bnx2_enable_msix() 6280 total_vecs++; in bnx2_enable_msix() 6282 total_vecs = pci_enable_msix_range(bp->pdev, msix_ent, in bnx2_enable_msix() 6283 BNX2_MIN_MSIX_VEC, total_vecs); in bnx2_enable_msix() 6284 if (total_vecs < 0) in bnx2_enable_msix() 6287 msix_vecs = total_vecs; in bnx2_enable_msix() 6293 for (i = 0; i < total_vecs; i++) { in bnx2_enable_msix()
|