/drivers/scsi/bfa/ |
D | bfa_hw_ct.c | 103 bfa_hwct_msix_init(struct bfa_s *bfa, int nvecs) in bfa_hwct_msix_init() argument 105 WARN_ON((nvecs != 1) && (nvecs != BFI_MSIX_CT_MAX)); in bfa_hwct_msix_init() 106 bfa_trc(bfa, nvecs); in bfa_hwct_msix_init() 108 bfa->msix.nvecs = nvecs; in bfa_hwct_msix_init() 115 if (bfa->msix.nvecs == 0) in bfa_hwct_msix_ctrl_install() 118 if (bfa->msix.nvecs == 1) in bfa_hwct_msix_ctrl_install() 129 if (bfa->msix.nvecs == 0) in bfa_hwct_msix_queue_install() 132 if (bfa->msix.nvecs == 1) { in bfa_hwct_msix_queue_install()
|
D | bfa_hw_cb.c | 106 bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs) in bfa_hwcb_msix_init() argument 108 WARN_ON((nvecs != 1) && (nvecs != __HFN_NUMINTS)); in bfa_hwcb_msix_init() 110 bfa->msix.nvecs = nvecs; in bfa_hwcb_msix_init() 119 if (bfa->msix.nvecs == 0) in bfa_hwcb_msix_ctrl_install() 122 if (bfa->msix.nvecs == 1) { in bfa_hwcb_msix_ctrl_install() 137 if (bfa->msix.nvecs == 0) in bfa_hwcb_msix_queue_install() 140 if (bfa->msix.nvecs == 1) { in bfa_hwcb_msix_queue_install()
|
D | bfa.h | 169 int nvecs; member 180 void (*hw_msix_init)(struct bfa_s *bfa, int nvecs); 186 u32 *nvecs, u32 *maxvec); 314 void bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs); 319 void bfa_hwcb_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs, 328 void bfa_hwct_msix_init(struct bfa_s *bfa, int nvecs); 333 void bfa_hwct_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs,
|
D | bfa_core.c | 866 bfa_isr_mode_set(bfa, bfa->msix.nvecs != 0); in bfa_isr_enable() 989 if (bfa->msix.nvecs == 1) in bfa_iocfc_send_cfg() 1085 bfa->msix.nvecs = 0; in bfa_iocfc_init_mem()
|
/drivers/scsi/csiostor/ |
D | csio_isr.c | 477 static void csio_calc_sets(struct irq_affinity *affd, unsigned int nvecs) in csio_calc_sets() argument 482 if (!nvecs) in csio_calc_sets() 485 if (nvecs < hw->num_pports) { in csio_calc_sets() 487 affd->set_size[0] = nvecs; in csio_calc_sets() 493 affd->set_size[i] = nvecs / hw->num_pports; in csio_calc_sets()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 518 static void rvu_check_min_msix_vec(struct rvu *rvu, int nvecs, int pf, int vf) in rvu_check_min_msix_vec() argument 525 if (!nvecs) { in rvu_check_min_msix_vec() 528 pf, vf - 1, nvecs); in rvu_check_min_msix_vec() 538 if (!(nvecs < min_vecs)) in rvu_check_min_msix_vec() 542 pf, nvecs, min_vecs); in rvu_check_min_msix_vec() 549 int nvecs, offset, max_msix; in rvu_setup_msix_resources() local 590 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources() 592 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources() 622 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources() 624 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources() [all …]
|
/drivers/pci/ |
D | msi.c | 1236 int nvecs = -ENOSPC; in pci_alloc_irq_vectors_affinity() local 1247 nvecs = __pci_enable_msix_range(dev, NULL, min_vecs, max_vecs, in pci_alloc_irq_vectors_affinity() 1249 if (nvecs > 0) in pci_alloc_irq_vectors_affinity() 1250 return nvecs; in pci_alloc_irq_vectors_affinity() 1254 nvecs = __pci_enable_msi_range(dev, min_vecs, max_vecs, affd); in pci_alloc_irq_vectors_affinity() 1255 if (nvecs > 0) in pci_alloc_irq_vectors_affinity() 1256 return nvecs; in pci_alloc_irq_vectors_affinity() 1274 return nvecs; in pci_alloc_irq_vectors_affinity()
|
/drivers/net/ethernet/brocade/bna/ |
D | bnad.c | 95 int vector, nvecs; in bnad_tx_buff_unmap() local 98 nvecs = unmap->nvecs; in bnad_tx_buff_unmap() 102 unmap->nvecs = 0; in bnad_tx_buff_unmap() 107 nvecs--; in bnad_tx_buff_unmap() 110 while (nvecs) { in bnad_tx_buff_unmap() 123 nvecs--; in bnad_tx_buff_unmap() 187 unmap_wis = BNA_TXQ_WI_NEEDED(unmap->nvecs); in bnad_txcmpl_process() 500 u32 sop_ci, u32 nvecs) in bnad_cq_drop_packet() argument 507 for (vec = 0, ci = sop_ci; vec < nvecs; vec++) { in bnad_cq_drop_packet() 519 bnad_cq_setup_skb_frags(struct bna_ccb *ccb, struct sk_buff *skb, u32 nvecs) in bnad_cq_setup_skb_frags() argument [all …]
|
D | bnad.h | 223 u32 nvecs; member
|
/drivers/pci/switch/ |
D | switchtec.c | 1430 int nvecs; in switchtec_init_isr() local 1438 nvecs = pci_alloc_irq_vectors(stdev->pdev, 1, nirqs, in switchtec_init_isr() 1441 if (nvecs < 0) in switchtec_init_isr() 1442 return nvecs; in switchtec_init_isr() 1445 if (event_irq < 0 || event_irq >= nvecs) in switchtec_init_isr() 1463 if (dma_mrpc_irq < 0 || dma_mrpc_irq >= nvecs) in switchtec_init_isr()
|
/drivers/irqchip/ |
D | irq-gic-v3-its.c | 3379 int nvecs, bool alloc_lpis) in its_create_device() argument 3394 if (WARN_ON(!is_power_of_2(nvecs))) in its_create_device() 3395 nvecs = roundup_pow_of_two(nvecs); in its_create_device() 3402 nr_ites = max(2, nvecs); in its_create_device() 3407 lpi_map = its_lpi_alloc(nvecs, &lpi_base, &nr_lpis); in its_create_device() 3460 static int its_alloc_device_irq(struct its_device *dev, int nvecs, irq_hw_number_t *hwirq) in its_alloc_device_irq() argument 3467 get_count_order(nvecs)); in its_alloc_device_irq()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 1616 static void bnx2x_free_msix_irqs(struct bnx2x *bp, int nvecs) in bnx2x_free_msix_irqs() argument 1620 if (nvecs == offset) in bnx2x_free_msix_irqs() 1632 if (nvecs == offset) in bnx2x_free_msix_irqs() 1638 if (nvecs == offset) in bnx2x_free_msix_irqs() 1651 int nvecs = BNX2X_NUM_ETH_QUEUES(bp) + CNIC_SUPPORT(bp); in bnx2x_free_irq() local 1655 nvecs++; in bnx2x_free_irq() 1657 bnx2x_free_msix_irqs(bp, nvecs); in bnx2x_free_irq()
|