Home
last modified time | relevance | path

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

/Linux-v5.4/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) {
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dadf_sriov.c225 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument
288 return numvfs; in adf_sriov_configure()
Dadf_common_drv.h233 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
249 static inline int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument
/Linux-v5.4/drivers/misc/genwqe/
Dcard_base.c1308 static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs) in genwqe_sriov_configure() argument
1313 if (numvfs > 0) { in genwqe_sriov_configure()
1315 rc = pci_enable_sriov(dev, numvfs); in genwqe_sriov_configure()
1318 return numvfs; in genwqe_sriov_configure()
1320 if (numvfs == 0) { in genwqe_sriov_configure()
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c321 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf) in rvu_get_pf_numvfs() argument
327 *numvfs = (cfg >> 12) & 0xFF; in rvu_get_pf_numvfs()
496 int pf, vf, numvfs, hwvf, err; in rvu_setup_msix_resources() local
508 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_msix_resources()
545 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources()
1350 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local
1356 numvfs = (cfg >> 12) & 0xFF; in rvu_mbox_handler_vf_flr()
1358 if (vf && vf <= numvfs) in rvu_mbox_handler_vf_flr()
1825 u16 pcifunc, numvfs, vf; in rvu_flr_handler() local
1836 numvfs = (cfg >> 12) & 0xFF; in rvu_flr_handler()
[all …]
Drvu_nix.c1766 int err, pf, numvfs, idx; in nix_setup_bcast_tables() local
1778 numvfs = (cfg >> 12) & 0xFF; in nix_setup_bcast_tables()
1782 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_bcast_tables()
1784 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_bcast_tables()
1786 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_bcast_tables()
2328 int numvfs, hwvf; in nix_find_link_frs() local
2341 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in nix_find_link_frs()
2344 for (vf = 0; vf < numvfs; vf++) { in nix_find_link_frs()
Drvu.h312 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
/Linux-v5.4/drivers/pci/
Diov.c1007 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument
1012 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs()
1019 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
/Linux-v5.4/include/linux/
Dpci.h2052 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
2083 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument