Home
last modified time | relevance | path

Searched refs:num_vec (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_vf.c521 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 Dotx2_pf.c2520 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 Dotx2_cptvf_main.c38 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 Dbe_roce.c29 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 Dbe_main.c3430 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 Dotx_cptpf_main.c116 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 Dnic_main.c61 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 Dnicvf_main.c1098 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 Dnic.h372 u8 num_vec; member
/linux/drivers/net/ethernet/atheros/alx/
A Dmain.c832 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 Dalx.h111 int num_vec; member
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_main.c5915 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 Dhclgevf_main.h178 int num_vec; member
/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu.c2748 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 Drvu.h459 u16 num_vec; member
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.h300 int num_vec; member
/linux/drivers/crypto/hisilicon/
A Dqm.c5673 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()

Completed in 79 milliseconds