/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_vf.c | 519 int num_vec, err; in otx2vf_realloc_msix_vectors() local 521 num_vec = hw->nix_msixoff; in otx2vf_realloc_msix_vectors() 522 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2vf_realloc_msix_vectors() 526 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2vf_realloc_msix_vectors() 529 __func__, num_vec); in otx2vf_realloc_msix_vectors() 538 int num_vec = pci_msix_vec_count(pdev); in otx2vf_probe() local 587 hw->irq_name = devm_kmalloc_array(&hw->pdev->dev, num_vec, NAME_SIZE, in otx2vf_probe() 594 hw->affinity_mask = devm_kcalloc(&hw->pdev->dev, num_vec, in otx2vf_probe() 601 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2vf_probe() 604 __func__, num_vec); in otx2vf_probe()
|
D | otx2_pf.c | 2518 int num_vec, err; in otx2_realloc_msix_vectors() local 2523 num_vec = hw->nix_msixoff; in otx2_realloc_msix_vectors() 2524 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2_realloc_msix_vectors() 2528 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2_realloc_msix_vectors() 2531 __func__, num_vec); in otx2_realloc_msix_vectors() 2579 int num_vec; in otx2_probe() local 2625 num_vec = pci_msix_vec_count(pdev); in otx2_probe() 2626 hw->irq_name = devm_kmalloc_array(&hw->pdev->dev, num_vec, NAME_SIZE, in otx2_probe() 2633 hw->affinity_mask = devm_kcalloc(&hw->pdev->dev, num_vec, in otx2_probe() 2656 __func__, num_vec); in otx2_probe()
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_main.c | 38 int num_vec; in cptvf_register_interrupts() local 40 num_vec = pci_msix_vec_count(cptvf->pdev); in cptvf_register_interrupts() 41 if (num_vec <= 0) in cptvf_register_interrupts() 45 ret = pci_alloc_irq_vectors(cptvf->pdev, num_vec, num_vec, in cptvf_register_interrupts() 49 "Request for %d msix vectors failed\n", num_vec); in cptvf_register_interrupts()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_roce.c | 29 int i, num_vec; in _be_roce_dev_add() local 63 num_vec = adapter->num_msix_vec + adapter->num_msix_roce_vec; in _be_roce_dev_add() 65 dev_info.msix.num_vectors = min(num_vec, MAX_MSIX_VECTORS); in _be_roce_dev_add()
|
D | be_main.c | 3431 int num_vec; in be_msix_enable() local 3441 num_vec = be_max_any_irqs(adapter) + max_roce_eqs; in be_msix_enable() 3443 num_vec = max(adapter->cfg_num_rx_irqs, in be_msix_enable() 3447 for (i = 0; i < num_vec; i++) in be_msix_enable() 3450 num_vec = pci_enable_msix_range(adapter->pdev, adapter->msix_entries, in be_msix_enable() 3451 MIN_MSIX_VECTORS, num_vec); in be_msix_enable() 3452 if (num_vec < 0) in be_msix_enable() 3455 if (be_roce_supported(adapter) && num_vec > MIN_MSIX_VECTORS) { in be_msix_enable() 3456 adapter->num_msix_roce_vec = num_vec / 2; in be_msix_enable() 3461 adapter->num_msix_vec = num_vec - adapter->num_msix_roce_vec; in be_msix_enable() [all …]
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptpf_main.c | 116 u32 num_vec = OTX_CPT_PF_MSIX_VECTORS; in otx_cpt_register_interrupts() local 120 ret = pci_alloc_irq_vectors(cpt->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx_cpt_register_interrupts() 124 num_vec); in otx_cpt_register_interrupts()
|
/drivers/net/ethernet/cavium/thunder/ |
D | nic_main.c | 61 u8 num_vec; member 1177 for (irq = 0; irq < nic->num_vec; irq++) { in nic_free_all_interrupts() 1187 nic->num_vec = pci_msix_vec_count(nic->pdev); in nic_register_interrupts() 1190 ret = pci_alloc_irq_vectors(nic->pdev, nic->num_vec, nic->num_vec, in nic_register_interrupts() 1195 nic->num_vec, ret); in nic_register_interrupts() 1200 for (i = NIC_PF_INTR_ID_MBOX0; i < nic->num_vec; i++) { in nic_register_interrupts() 1221 nic->num_vec = 0; in nic_register_interrupts() 1229 nic->num_vec = 0; in nic_unregister_interrupts()
|
D | nicvf_main.c | 1098 for (vec = 0; vec < nic->num_vec; vec++) { in nicvf_set_irq_affinity() 1187 for (irq = 0; irq < nic->num_vec; irq++) { in nicvf_unregister_interrupts() 1204 nic->num_vec = 0; in nicvf_unregister_interrupts() 1220 nic->num_vec = pci_msix_vec_count(nic->pdev); in nicvf_register_misc_interrupt() 1221 ret = pci_alloc_irq_vectors(nic->pdev, nic->num_vec, nic->num_vec, in nicvf_register_misc_interrupt() 1225 "Req for #%d msix vectors failed\n", nic->num_vec); in nicvf_register_misc_interrupt() 1364 for (irq = 0; irq < nic->num_vec; irq++) in nicvf_stop()
|
D | nic.h | 372 u8 num_vec; member
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 832 int err, num_vec, num_txq, num_rxq; in alx_enable_msix() local 836 num_vec = max_t(int, num_txq, num_rxq) + 1; in alx_enable_msix() 838 err = pci_alloc_irq_vectors(alx->hw.pdev, num_vec, num_vec, in alx_enable_msix() 845 alx->num_vec = num_vec; in alx_enable_msix() 846 alx->num_napi = num_vec - 1; in alx_enable_msix() 909 alx->num_vec = 1; in alx_init_intr() 928 for (i = 0; i < alx->num_vec; i++) in alx_irq_enable() 943 for (i = 0; i < alx->num_vec; i++) { in alx_irq_disable()
|
D | alx.h | 111 int num_vec; member
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_main.c | 5849 static int alloc_msix_info(struct adapter *adap, u32 num_vec) in alloc_msix_info() argument 5853 msix_info = kcalloc(num_vec, sizeof(*msix_info), GFP_KERNEL); in alloc_msix_info() 5857 adap->msix_bmap.msix_bmap = kcalloc(BITS_TO_LONGS(num_vec), in alloc_msix_info() 5865 adap->msix_bmap.mapsize = num_vec; in alloc_msix_info() 5915 u32 i, want, need, num_vec; in enable_msix() local 5989 num_vec = allocated; in enable_msix() 5990 if (num_vec < want) { in enable_msix() 6003 num_vec -= need; in enable_msix() 6004 while (num_vec) { in enable_msix() 6005 if (num_vec < eth_need + ethofld_need || in enable_msix() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.h | 178 int num_vec; member
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 2726 for (irq = 0; irq < rvu->num_vec; irq++) { in rvu_unregister_interrupts() 2734 rvu->num_vec = 0; in rvu_unregister_interrupts() 2757 rvu->num_vec = pci_msix_vec_count(rvu->pdev); in rvu_register_interrupts() 2759 rvu->irq_name = devm_kmalloc_array(rvu->dev, rvu->num_vec, in rvu_register_interrupts() 2764 rvu->irq_allocated = devm_kcalloc(rvu->dev, rvu->num_vec, in rvu_register_interrupts() 2770 ret = pci_alloc_irq_vectors(rvu->pdev, rvu->num_vec, in rvu_register_interrupts() 2771 rvu->num_vec, PCI_IRQ_MSIX); in rvu_register_interrupts() 2775 rvu->num_vec, ret); in rvu_register_interrupts()
|
D | rvu.h | 457 u16 num_vec; member
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.h | 300 int num_vec; member
|
/drivers/crypto/hisilicon/ |
D | qm.c | 5627 unsigned int num_vec; in hisi_qm_pci_init() local 5649 num_vec = qm->ops->get_irq_num(qm); in hisi_qm_pci_init() 5650 ret = pci_alloc_irq_vectors(pdev, num_vec, num_vec, PCI_IRQ_MSI); in hisi_qm_pci_init()
|