Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c8023 int i, total_vecs, max, rc = 0, min = 1, ulp_msix; in bnxt_init_msix() local
8026 total_vecs = bnxt_get_num_msix(bp); in bnxt_init_msix()
8028 if (total_vecs > max) in bnxt_init_msix()
8029 total_vecs = max; in bnxt_init_msix()
8031 if (!total_vecs) in bnxt_init_msix()
8034 msix_ent = kcalloc(total_vecs, sizeof(struct msix_entry), GFP_KERNEL); in bnxt_init_msix()
8038 for (i = 0; i < total_vecs; i++) { in bnxt_init_msix()
8046 total_vecs = pci_enable_msix_range(bp->pdev, msix_ent, min, total_vecs); in bnxt_init_msix()
8048 if (total_vecs < 0 || total_vecs < ulp_msix) { in bnxt_init_msix()
8053 bp->irq_tbl = kcalloc(total_vecs, sizeof(struct bnxt_irq), GFP_KERNEL); in bnxt_init_msix()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbnx2.c6273 int i, total_vecs; in bnx2_enable_msix() local
6292 total_vecs = msix_vecs; in bnx2_enable_msix()
6294 total_vecs++; in bnx2_enable_msix()
6296 total_vecs = pci_enable_msix_range(bp->pdev, msix_ent, in bnx2_enable_msix()
6297 BNX2_MIN_MSIX_VEC, total_vecs); in bnx2_enable_msix()
6298 if (total_vecs < 0) in bnx2_enable_msix()
6301 msix_vecs = total_vecs; in bnx2_enable_msix()
6307 for (i = 0; i < total_vecs; i++) { in bnx2_enable_msix()