Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_vf.c517 int num_vec, err; in otx2vf_realloc_msix_vectors() local
519 num_vec = hw->nix_msixoff; in otx2vf_realloc_msix_vectors()
520 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2vf_realloc_msix_vectors()
524 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2vf_realloc_msix_vectors()
527 __func__, num_vec); in otx2vf_realloc_msix_vectors()
536 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()
Dotx2_pf.c2821 int num_vec, err; in otx2_realloc_msix_vectors() local
2826 num_vec = hw->nix_msixoff; in otx2_realloc_msix_vectors()
2827 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2_realloc_msix_vectors()
2831 err = pci_alloc_irq_vectors(hw->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2_realloc_msix_vectors()
2834 __func__, num_vec); in otx2_realloc_msix_vectors()
2882 int num_vec; in otx2_probe() local
2933 num_vec = pci_msix_vec_count(pdev); in otx2_probe()
2934 hw->irq_name = devm_kmalloc_array(&hw->pdev->dev, num_vec, NAME_SIZE, in otx2_probe()
2941 hw->affinity_mask = devm_kcalloc(&hw->pdev->dev, num_vec, in otx2_probe()
2964 __func__, num_vec); in otx2_probe()
/linux-6.12.1/drivers/crypto/marvell/octeontx2/
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()
Dotx2_cptpf_main.c725 int err, num_vec; in otx2_cptpf_probe() local
760 num_vec = pci_msix_vec_count(cptpf->pdev); in otx2_cptpf_probe()
761 if (num_vec <= 0) { in otx2_cptpf_probe()
766 err = pci_alloc_irq_vectors(pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx2_cptpf_probe()
/linux-6.12.1/drivers/net/ethernet/emulex/benet/
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()
Dbe_main.c3431 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 …]
/linux-6.12.1/drivers/crypto/marvell/octeontx/
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-6.12.1/drivers/net/ethernet/cavium/thunder/
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()
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()
Dnic.h372 u8 num_vec; member
/linux-6.12.1/drivers/net/ethernet/atheros/alx/
Dalx.h111 int num_vec; member
Dmain.c831 int err, num_vec, num_txq, num_rxq; in alx_enable_msix() local
835 num_vec = max_t(int, num_txq, num_rxq) + 1; in alx_enable_msix()
837 err = pci_alloc_irq_vectors(alx->hw.pdev, num_vec, num_vec, in alx_enable_msix()
844 alx->num_vec = num_vec; in alx_enable_msix()
845 alx->num_napi = num_vec - 1; in alx_enable_msix()
908 alx->num_vec = 1; in alx_init_intr()
927 for (i = 0; i < alx->num_vec; i++) in alx_irq_enable()
942 for (i = 0; i < alx->num_vec; i++) { in alx_irq_disable()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.h156 int num_vec; member
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c5844 static int alloc_msix_info(struct adapter *adap, u32 num_vec) in alloc_msix_info() argument
5848 msix_info = kcalloc(num_vec, sizeof(*msix_info), GFP_KERNEL); in alloc_msix_info()
5852 adap->msix_bmap.msix_bmap = bitmap_zalloc(num_vec, GFP_KERNEL); in alloc_msix_info()
5859 adap->msix_bmap.mapsize = num_vec; in alloc_msix_info()
5909 u32 i, want, need, num_vec; in enable_msix() local
5983 num_vec = allocated; in enable_msix()
5984 if (num_vec < want) { in enable_msix()
5997 num_vec -= need; in enable_msix()
5998 while (num_vec) { in enable_msix()
5999 if (num_vec < eth_need + ethofld_need || in enable_msix()
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs.c1141 mcs->num_vec = pci_msix_vec_count(mcs->pdev); in mcs_register_interrupts()
1143 ret = pci_alloc_irq_vectors(mcs->pdev, mcs->num_vec, in mcs_register_interrupts()
1144 mcs->num_vec, PCI_IRQ_MSIX); in mcs_register_interrupts()
1147 mcs->num_vec, ret); in mcs_register_interrupts()
1188 mcs->num_vec = 0; in mcs_register_interrupts()
Dmcs.h149 u16 num_vec; member
Drvu.c2918 for (irq = 0; irq < rvu->num_vec; irq++) { in rvu_unregister_interrupts()
2926 rvu->num_vec = 0; in rvu_unregister_interrupts()
2949 rvu->num_vec = pci_msix_vec_count(rvu->pdev); in rvu_register_interrupts()
2951 rvu->irq_name = devm_kmalloc_array(rvu->dev, rvu->num_vec, in rvu_register_interrupts()
2956 rvu->irq_allocated = devm_kcalloc(rvu->dev, rvu->num_vec, in rvu_register_interrupts()
2962 ret = pci_alloc_irq_vectors(rvu->pdev, rvu->num_vec, in rvu_register_interrupts()
2963 rvu->num_vec, PCI_IRQ_MSIX); in rvu_register_interrupts()
2967 rvu->num_vec, ret); in rvu_register_interrupts()
Drvu.h540 u16 num_vec; member
/linux-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_virtchnl.c1011 u16 num_vchunks, num_vec; in idpf_get_reg_intr_vecs() local
1023 num_vec = le16_to_cpu(chunk->num_vectors); in idpf_get_reg_intr_vecs()
1031 for (i = 0; i < num_vec; i++) { in idpf_get_reg_intr_vecs()
3209 u16 start_vecid, num_vec; in idpf_get_vec_ids() local
3212 num_vec = le16_to_cpu(chunk->num_vectors); in idpf_get_vec_ids()
3215 for (i = 0; i < num_vec; i++) { in idpf_get_vec_ids()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h310 int num_vec; member
/linux-6.12.1/drivers/crypto/hisilicon/
Dqm.c5213 unsigned int num_vec; in hisi_qm_pci_init() local
5231 num_vec = qm_get_irq_num(qm); in hisi_qm_pci_init()
5232 ret = pci_alloc_irq_vectors(pdev, num_vec, num_vec, PCI_IRQ_MSI); in hisi_qm_pci_init()