Home
last modified time | relevance | path

Searched refs:numvfs (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptpf_main.c154 static int otx_cpt_sriov_configure(struct pci_dev *pdev, int numvfs) in otx_cpt_sriov_configure() argument
159 if (numvfs > cpt->max_vfs) in otx_cpt_sriov_configure()
160 numvfs = cpt->max_vfs; in otx_cpt_sriov_configure()
162 if (numvfs > 0) { in otx_cpt_sriov_configure()
169 cpt->vfs_enabled = numvfs; in otx_cpt_sriov_configure()
170 ret = pci_enable_sriov(pdev, numvfs); in otx_cpt_sriov_configure()
177 ret = numvfs; in otx_cpt_sriov_configure()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c188 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr() argument
215 if (numvfs > 64) { in otx2_register_flr_me_intr()
240 otx2_write64(pf, RVU_PF_VFME_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
241 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
244 otx2_write64(pf, RVU_PF_VFFLR_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
245 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
247 if (numvfs > 64) { in otx2_register_flr_me_intr()
248 numvfs -= 64; in otx2_register_flr_me_intr()
250 otx2_write64(pf, RVU_PF_VFME_INTX(1), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
252 INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
[all …]
/kernel/linux/linux-5.10/Documentation/PCI/
Dpci-iov-howto.rst49 checks, e.g., check numvfs == 0 if enabling VFs, ensure
50 numvfs <= totalvfs.
147 static int dev_sriov_configure(struct pci_dev *dev, int numvfs)
149 if (numvfs > 0) {
151 pci_enable_sriov(dev, numvfs);
153 return numvfs;
155 if (numvfs == 0) {
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dadf_sriov.c185 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument
248 return numvfs; in adf_sriov_configure()
Dadf_common_drv.h189 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
205 static inline int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c360 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf) in rvu_get_pf_numvfs() argument
366 *numvfs = (cfg >> 12) & 0xFF; in rvu_get_pf_numvfs()
548 int pf, vf, numvfs, hwvf, err; in rvu_setup_msix_resources() local
560 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_msix_resources()
597 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources()
708 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local
728 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_pfvf_macaddress()
729 for (vf = 0; vf < numvfs; vf++, hwvf++) { in rvu_setup_pfvf_macaddress()
1583 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local
1589 numvfs = (cfg >> 12) & 0xFF; in rvu_mbox_handler_vf_flr()
[all …]
Drvu_nix.c2112 int err, pf, numvfs, idx; in nix_setup_bcast_tables() local
2124 numvfs = (cfg >> 12) & 0xFF; in nix_setup_bcast_tables()
2128 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_bcast_tables()
2130 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_bcast_tables()
2132 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_bcast_tables()
2774 int numvfs, hwvf; in nix_find_link_frs() local
2787 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in nix_find_link_frs()
2790 for (vf = 0; vf < numvfs; vf++) { in nix_find_link_frs()
Drvu.h440 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
Drvu_debugfs.c1654 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local
1705 numvfs = (cfg >> 12) & 0xFF; in rvu_dbg_npc_mcam_info_display()
1706 for (vf = 0; vf < numvfs; vf++) { in rvu_dbg_npc_mcam_info_display()
/kernel/linux/linux-5.10/drivers/misc/genwqe/
Dcard_base.c1324 static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs) in genwqe_sriov_configure() argument
1329 if (numvfs > 0) { in genwqe_sriov_configure()
1331 rc = pci_enable_sriov(dev, numvfs); in genwqe_sriov_configure()
1334 return numvfs; in genwqe_sriov_configure()
1336 if (numvfs == 0) { in genwqe_sriov_configure()
/kernel/linux/linux-5.10/drivers/pci/
Diov.c1023 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument
1028 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs()
1035 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
/kernel/linux/linux-5.10/include/linux/
Dpci.h2102 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
2139 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument