Home
last modified time | relevance | path

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

/linux-6.15/Documentation/translations/zh_CN/PCI/
H A Dpci-iov-howto.rst51 复,例如,如果启用VF,检查numvfs == 0,确保numvfs <= totalvfs。
145 static int dev_sriov_configure(struct pci_dev *dev, int numvfs)
147 if (numvfs > 0) {
149 pci_enable_sriov(dev, numvfs);
151 return numvfs;
153 if (numvfs == 0) {
/linux-6.15/drivers/crypto/marvell/octeontx/
H A 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()
/linux-6.15/Documentation/PCI/
H A 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-6.15/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_switch.c89 int pf, vf, numvfs; in rvu_switch_install_rules() local
127 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_switch_install_rules()
128 for (vf = 0; vf < numvfs; vf++) { in rvu_switch_install_rules()
224 int pf, vf, numvfs; in rvu_switch_disable() local
249 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_switch_disable()
250 for (vf = 0; vf < numvfs; vf++) { in rvu_switch_disable()
H A Drvu_rep.c318 int pf, vf, numvfs; in rvu_rep_install_mcam_rules() local
344 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_rep_install_mcam_rules()
345 for (vf = 0; vf < numvfs; vf++) { in rvu_rep_install_mcam_rules()
440 int pf, vf, numvfs, hwvf, rep = 0; in rvu_mbox_handler_get_rep_cnt() local
459 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_mbox_handler_get_rep_cnt()
460 for (vf = 0; vf < numvfs; vf++) { in rvu_mbox_handler_get_rep_cnt()
H A Drvu.c414 if (numvfs) in rvu_get_pf_numvfs()
415 *numvfs = (cfg >> 12) & 0xFF; in rvu_get_pf_numvfs()
608 int pf, vf, numvfs, hwvf, err; in rvu_setup_msix_resources() local
657 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources()
768 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local
2002 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local
2008 numvfs = (cfg >> 12) & 0xFF; in rvu_mbox_handler_vf_flr()
2010 if (vf && vf <= numvfs) in rvu_mbox_handler_vf_flr()
2759 u16 pcifunc, numvfs, vf; in rvu_flr_handler() local
2770 numvfs = (cfg >> 12) & 0xFF; in rvu_flr_handler()
[all …]
H A Drvu_cgx.c129 int numvfs, hwvfs; in rvu_map_cgx_lmac_pf() local
173 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvfs); in rvu_map_cgx_lmac_pf()
174 rvu->cgx_mapped_vfs += numvfs; in rvu_map_cgx_lmac_pf()
H A Drvu_nix.c3588 int err, pf, numvfs, idx; in nix_setup_mce_tables() local
3600 numvfs = (cfg >> 12) & 0xFF; in nix_setup_mce_tables()
3609 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1, NIX_MCAST_INGRESS); in nix_setup_mce_tables()
3610 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_mce_tables()
3613 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1, NIX_MCAST_INGRESS); in nix_setup_mce_tables()
3614 nix_mce_list_init(&pfvf->mcast_mce_list, numvfs + 1); in nix_setup_mce_tables()
3618 nix_mce_list_init(&pfvf->promisc_mce_list, numvfs + 1); in nix_setup_mce_tables()
3620 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_mce_tables()
4560 int numvfs, hwvf; in nix_find_link_frs() local
4573 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in nix_find_link_frs()
[all …]
H A Drvu.h841 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
H A Drvu_debugfs.c3005 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local
3056 numvfs = (cfg >> 12) & 0xFF; in rvu_dbg_npc_mcam_info_display()
3057 for (vf = 0; vf < numvfs; vf++) { in rvu_dbg_npc_mcam_info_display()
/linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c228 if (numvfs > 64) { in otx2_register_flr_me_intr()
260 if (numvfs > 64) { in otx2_register_flr_me_intr()
261 numvfs -= 64; in otx2_register_flr_me_intr()
578 if (!numvfs) in otx2_pfvf_mbox_init()
662 if (numvfs > 64) { in otx2_enable_pfvf_mbox_intr()
663 numvfs -= 64; in otx2_enable_pfvf_mbox_intr()
681 if (numvfs > 64) { in otx2_disable_pfvf_mbox_intr()
709 if (numvfs > 64) { in otx2_register_pfvf_mbox_intr()
3328 return numvfs; in otx2_sriov_enable()
3346 if (!numvfs) in otx2_sriov_disable()
[all …]
/linux-6.15/drivers/crypto/intel/qat/qat_common/
H A Dadf_sriov.c284 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument
293 if (numvfs) in adf_sriov_configure()
H A Dadf_common_drv.h193 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
/linux-6.15/drivers/misc/genwqe/
H A Dcard_base.c1327 static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs) in genwqe_sriov_configure() argument
1332 if (numvfs > 0) { in genwqe_sriov_configure()
1334 rc = pci_enable_sriov(dev, numvfs); in genwqe_sriov_configure()
1337 return numvfs; in genwqe_sriov_configure()
1339 if (numvfs == 0) { in genwqe_sriov_configure()
/linux-6.15/drivers/gpu/drm/ci/xfails/
H A Di915-tgl-skips.txt49 sriov_basic@enable-vfs-bind-unbind-each-numvfs-all
H A Di915-tgl-fails.txt20 sriov_basic@enable-vfs-bind-unbind-each-numvfs-all,Timeout
/linux-6.15/drivers/pci/
H A Diov.c1189 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument
1194 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs()
1201 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
/linux-6.15/include/linux/
H A Dpci.h2390 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
2439 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument