/linux-6.3-rc2/Documentation/translations/zh_CN/PCI/ |
A D | pci-iov-howto.rst | 51 复,例如,如果启用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.3-rc2/drivers/crypto/marvell/octeontx/ |
A D | otx_cptpf_main.c | 154 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.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu_switch.c | 76 int pf, vf, numvfs; in rvu_switch_install_rules() local 114 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_switch_install_rules() 115 for (vf = 0; vf < numvfs; vf++) { in rvu_switch_install_rules() 202 int pf, vf, numvfs; in rvu_switch_disable() local 221 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_switch_disable() 222 for (vf = 0; vf < numvfs; vf++) { in rvu_switch_disable()
|
A D | rvu.c | 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 657 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources() 768 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local 1996 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local 2002 numvfs = (cfg >> 12) & 0xFF; in rvu_mbox_handler_vf_flr() 2004 if (vf && vf <= numvfs) in rvu_mbox_handler_vf_flr() 2626 u16 pcifunc, numvfs, vf; in rvu_flr_handler() local 2637 numvfs = (cfg >> 12) & 0xFF; in rvu_flr_handler() [all …]
|
A D | rvu_cgx.c | 129 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()
|
A D | rvu_nix.c | 2965 int err, pf, numvfs, idx; in nix_setup_mce_tables() local 2977 numvfs = (cfg >> 12) & 0xFF; in nix_setup_mce_tables() 2986 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 2987 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 2990 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 2991 nix_mce_list_init(&pfvf->mcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 2995 nix_mce_list_init(&pfvf->promisc_mce_list, numvfs + 1); in nix_setup_mce_tables() 2997 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_mce_tables() 3841 int numvfs, hwvf; in nix_find_link_frs() local 3854 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in nix_find_link_frs() [all …]
|
A D | rvu.h | 708 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
|
A D | rvu_debugfs.c | 2666 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local 2717 numvfs = (cfg >> 12) & 0xFF; in rvu_dbg_npc_mcam_info_display() 2718 for (vf = 0; vf < numvfs; vf++) { in rvu_dbg_npc_mcam_info_display()
|
/linux-6.3-rc2/Documentation/PCI/ |
A D | pci-iov-howto.rst | 49 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.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_pf.c | 224 if (numvfs > 64) { in otx2_register_flr_me_intr() 256 if (numvfs > 64) { in otx2_register_flr_me_intr() 257 numvfs -= 64; in otx2_register_flr_me_intr() 588 if (!numvfs) in otx2_pfvf_mbox_init() 672 if (numvfs > 64) { in otx2_enable_pfvf_mbox_intr() 673 numvfs -= 64; in otx2_enable_pfvf_mbox_intr() 691 if (numvfs > 64) { in otx2_disable_pfvf_mbox_intr() 719 if (numvfs > 64) { in otx2_register_pfvf_mbox_intr() 3012 return numvfs; in otx2_sriov_enable() 3030 if (!numvfs) in otx2_sriov_disable() [all …]
|
/linux-6.3-rc2/drivers/crypto/qat/qat_common/ |
A D | adf_sriov.c | 135 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument 203 return numvfs; in adf_sriov_configure()
|
A D | adf_common_drv.h | 201 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
|
/linux-6.3-rc2/drivers/misc/genwqe/ |
A D | card_base.c | 1309 static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs) in genwqe_sriov_configure() argument 1314 if (numvfs > 0) { in genwqe_sriov_configure() 1316 rc = pci_enable_sriov(dev, numvfs); in genwqe_sriov_configure() 1319 return numvfs; in genwqe_sriov_configure() 1321 if (numvfs == 0) { in genwqe_sriov_configure()
|
/linux-6.3-rc2/drivers/pci/ |
A D | iov.c | 1161 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument 1166 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs() 1173 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
|
/linux-6.3-rc2/include/linux/ |
A D | pci.h | 2235 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); 2284 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument
|