/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/pci/ |
D | msi.c | 1139 int nvecs = -ENOSPC; in pci_alloc_irq_vectors_affinity() local 1150 nvecs = __pci_enable_msix_range(dev, NULL, min_vecs, max_vecs, in pci_alloc_irq_vectors_affinity() 1152 if (nvecs > 0) in pci_alloc_irq_vectors_affinity() 1153 return nvecs; in pci_alloc_irq_vectors_affinity() 1157 nvecs = __pci_enable_msi_range(dev, min_vecs, max_vecs, affd); in pci_alloc_irq_vectors_affinity() 1158 if (nvecs > 0) in pci_alloc_irq_vectors_affinity() 1159 return nvecs; in pci_alloc_irq_vectors_affinity() 1177 return nvecs; in pci_alloc_irq_vectors_affinity()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 573 static void rvu_check_min_msix_vec(struct rvu *rvu, int nvecs, int pf, int vf) in rvu_check_min_msix_vec() argument 580 if (!nvecs) { in rvu_check_min_msix_vec() 583 pf, vf - 1, nvecs); in rvu_check_min_msix_vec() 593 if (!(nvecs < min_vecs)) in rvu_check_min_msix_vec() 597 pf, nvecs, min_vecs); in rvu_check_min_msix_vec() 604 int nvecs, offset, max_msix; in rvu_setup_msix_resources() local 645 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources() 647 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources() 677 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources() 679 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources() [all …]
|
/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 | 1429 int nvecs; in switchtec_init_isr() local 1437 nvecs = pci_alloc_irq_vectors(stdev->pdev, 1, nirqs, in switchtec_init_isr() 1440 if (nvecs < 0) in switchtec_init_isr() 1441 return nvecs; in switchtec_init_isr() 1444 if (event_irq < 0 || event_irq >= nvecs) in switchtec_init_isr() 1462 if (dma_mrpc_irq < 0 || dma_mrpc_irq >= nvecs) in switchtec_init_isr()
|
/drivers/irqchip/ |
D | irq-gic-v3-its.c | 3407 int nvecs, bool alloc_lpis) in its_create_device() argument 3422 if (WARN_ON(!is_power_of_2(nvecs))) in its_create_device() 3423 nvecs = roundup_pow_of_two(nvecs); in its_create_device() 3430 nr_ites = max(2, nvecs); in its_create_device() 3435 lpi_map = its_lpi_alloc(nvecs, &lpi_base, &nr_lpis); in its_create_device() 3488 static int its_alloc_device_irq(struct its_device *dev, int nvecs, irq_hw_number_t *hwirq) in its_alloc_device_irq() argument 3495 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()
|