Home
last modified time | relevance | path

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

/linux-6.6.21/Documentation/translations/zh_CN/PCI/
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.6.21/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()
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
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()
217 int pf, vf, numvfs; in rvu_switch_disable() local
239 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_switch_disable()
240 for (vf = 0; vf < numvfs; vf++) { in rvu_switch_disable()
Drvu.c408 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf) in rvu_get_pf_numvfs() argument
414 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
620 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_msix_resources()
657 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources()
768 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local
794 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_pfvf_macaddress()
795 for (vf = 0; vf < numvfs; vf++, hwvf++) { in rvu_setup_pfvf_macaddress()
1996 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local
[all …]
Drvu_cgx.c129 int numvfs, hwvfs; in rvu_map_cgx_lmac_pf() local
171 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvfs); in rvu_map_cgx_lmac_pf()
172 rvu->cgx_mapped_vfs += numvfs; in rvu_map_cgx_lmac_pf()
Drvu_nix.c3166 int err, pf, numvfs, idx; in nix_setup_mce_tables() local
3178 numvfs = (cfg >> 12) & 0xFF; in nix_setup_mce_tables()
3187 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables()
3188 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_mce_tables()
3191 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables()
3192 nix_mce_list_init(&pfvf->mcast_mce_list, numvfs + 1); in nix_setup_mce_tables()
3195 pfvf->promisc_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables()
3196 nix_mce_list_init(&pfvf->promisc_mce_list, numvfs + 1); in nix_setup_mce_tables()
3198 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_mce_tables()
4107 int numvfs, hwvf; in nix_find_link_frs() local
[all …]
Drvu.h749 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
Drvu_debugfs.c2672 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local
2723 numvfs = (cfg >> 12) & 0xFF; in rvu_dbg_npc_mcam_info_display()
2724 for (vf = 0; vf < numvfs; vf++) { in rvu_dbg_npc_mcam_info_display()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c199 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr() argument
226 if (numvfs > 64) { in otx2_register_flr_me_intr()
251 otx2_write64(pf, RVU_PF_VFME_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
252 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
255 otx2_write64(pf, RVU_PF_VFFLR_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
256 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
258 if (numvfs > 64) { in otx2_register_flr_me_intr()
259 numvfs -= 64; in otx2_register_flr_me_intr()
261 otx2_write64(pf, RVU_PF_VFME_INTX(1), INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
263 INTR_MASK(numvfs)); in otx2_register_flr_me_intr()
[all …]
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dadf_sriov.c135 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument
197 return numvfs; in adf_sriov_configure()
Dadf_common_drv.h197 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
/linux-6.6.21/drivers/misc/genwqe/
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.6.21/drivers/pci/
Diov.c1160 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument
1165 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs()
1172 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
/linux-6.6.21/include/linux/
Dpci.h2352 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
2401 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument