/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_vf.c | 521 int num_vec, err; in otx2vf_realloc_msix_vectors() local 523 num_vec = hw->nix_msixoff; in otx2vf_realloc_msix_vectors() 524 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2vf_realloc_msix_vectors() 528 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2vf_realloc_msix_vectors() 531 __func__, num_vec); in otx2vf_realloc_msix_vectors() 540 int num_vec = pci_msix_vec_count(pdev); in otx2vf_probe() local 590 hw->irq_name = devm_kmalloc_array(&hw->pdev->dev, num_vec, NAME_SIZE, in otx2vf_probe() 597 hw->affinity_mask = devm_kcalloc(&hw->pdev->dev, num_vec, in otx2vf_probe() 604 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2vf_probe() 607 __func__, num_vec); in otx2vf_probe()
|
A D | otx2_pf.c | 2520 int num_vec, err; in otx2_realloc_msix_vectors() local 2525 num_vec = hw->nix_msixoff; in otx2_realloc_msix_vectors() 2526 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2_realloc_msix_vectors() 2530 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2_realloc_msix_vectors() 2533 __func__, num_vec); in otx2_realloc_msix_vectors() 2581 int num_vec; in otx2_probe() local 2628 num_vec = pci_msix_vec_count(pdev); in otx2_probe() 2629 hw->irq_name = devm_kmalloc_array(&hw->pdev->dev, num_vec, NAME_SIZE, in otx2_probe() 2636 hw->affinity_mask = devm_kcalloc(&hw->pdev->dev, num_vec, in otx2_probe() 2659 __func__, num_vec); in otx2_probe()
|
/linux/drivers/crypto/marvell/octeontx2/ |
A 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()
|
/linux/drivers/net/ethernet/emulex/benet/ |
A 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()
|
A D | be_main.c | 3430 int num_vec; in be_msix_enable() local 3440 num_vec = be_max_any_irqs(adapter) + max_roce_eqs; in be_msix_enable() 3442 num_vec = max(adapter->cfg_num_rx_irqs, in be_msix_enable() 3446 for (i = 0; i < num_vec; i++) in be_msix_enable() 3449 num_vec = pci_enable_msix_range(adapter->pdev, adapter->msix_entries, in be_msix_enable() 3450 MIN_MSIX_VECTORS, num_vec); in be_msix_enable() 3451 if (num_vec < 0) in be_msix_enable() 3454 if (be_roce_supported(adapter) && num_vec > MIN_MSIX_VECTORS) { in be_msix_enable() 3455 adapter->num_msix_roce_vec = num_vec / 2; in be_msix_enable() 3460 adapter->num_msix_vec = num_vec - adapter->num_msix_roce_vec; in be_msix_enable() [all …]
|
/linux/drivers/crypto/marvell/octeontx/ |
A 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()
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A 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()
|
A 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()
|
A D | nic.h | 372 u8 num_vec; member
|
/linux/drivers/net/ethernet/atheros/alx/ |
A 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()
|
A D | alx.h | 111 int num_vec; member
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_main.c | 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() 6015 num_vec--; in enable_msix() 6018 num_vec--; in enable_msix() 6024 while (num_vec) { in enable_msix() 6030 num_vec -= uld_need; in enable_msix() 6035 while (num_vec) { in enable_msix() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
A D | hclgevf_main.h | 178 int num_vec; member
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu.c | 2748 for (irq = 0; irq < rvu->num_vec; irq++) { in rvu_unregister_interrupts() 2756 rvu->num_vec = 0; in rvu_unregister_interrupts() 2779 rvu->num_vec = pci_msix_vec_count(rvu->pdev); in rvu_register_interrupts() 2781 rvu->irq_name = devm_kmalloc_array(rvu->dev, rvu->num_vec, in rvu_register_interrupts() 2786 rvu->irq_allocated = devm_kcalloc(rvu->dev, rvu->num_vec, in rvu_register_interrupts() 2792 ret = pci_alloc_irq_vectors(rvu->pdev, rvu->num_vec, in rvu_register_interrupts() 2793 rvu->num_vec, PCI_IRQ_MSIX); in rvu_register_interrupts() 2797 rvu->num_vec, ret); in rvu_register_interrupts()
|
A D | rvu.h | 459 u16 num_vec; member
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_main.h | 300 int num_vec; member
|
/linux/drivers/crypto/hisilicon/ |
A D | qm.c | 5673 unsigned int num_vec; in hisi_qm_pci_init() local 5695 num_vec = qm->ops->get_irq_num(qm); in hisi_qm_pci_init() 5696 ret = pci_alloc_irq_vectors(pdev, num_vec, num_vec, PCI_IRQ_MSI); in hisi_qm_pci_init()
|