| /linux/Documentation/translations/zh_CN/PCI/ |
| H 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/tools/testing/selftests/vfio/scripts/ |
| H A D | setup.sh | 9 local numvfs 28 numvfs=$(get_sriov_numvfs ${device_bdf}) 29 if [ "${numvfs}" ]; then 31 echo ${numvfs} > ${device_dir}/sriov_numvfs
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H 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/Documentation/PCI/ |
| H 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/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_pf.c | 201 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr() argument 230 if (numvfs > 64) { in otx2_register_flr_me_intr() 255 otx2_write64(pf, RVU_PF_VFME_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 256 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 259 otx2_write64(pf, RVU_PF_VFFLR_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 260 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 262 if (numvfs > 64) { in otx2_register_flr_me_intr() 263 numvfs -= 64; in otx2_register_flr_me_intr() 265 otx2_write64(pf, RVU_PF_VFME_INTX(1), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 267 INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 579 cn20k_pfvf_mbox_alloc(struct otx2_nic * pf,int numvfs) cn20k_pfvf_mbox_alloc() argument 596 otx2_pfvf_mbox_init(struct otx2_nic * pf,int numvfs) otx2_pfvf_mbox_init() argument 688 otx2_enable_pfvf_mbox_intr(struct otx2_nic * pf,int numvfs) otx2_enable_pfvf_mbox_intr() argument 703 otx2_disable_pfvf_mbox_intr(struct otx2_nic * pf,int numvfs) otx2_disable_pfvf_mbox_intr() argument 725 otx2_register_pfvf_mbox_intr(struct otx2_nic * pf,int numvfs) otx2_register_pfvf_mbox_intr() argument 3393 otx2_sriov_enable(struct pci_dev * pdev,int numvfs) otx2_sriov_enable() argument 3436 int numvfs = pci_num_vf(pdev); otx2_sriov_disable() local 3451 otx2_sriov_configure(struct pci_dev * pdev,int numvfs) otx2_sriov_configure() argument [all...] |
| H A D | cn20k.c | 102 void cn20k_enable_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs) in cn20k_enable_pfvf_mbox_intr() argument 111 otx2_write64(pf, RVU_MBOX_PF_VFPF_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in cn20k_enable_pfvf_mbox_intr() 112 otx2_write64(pf, RVU_MBOX_PF_VFPF1_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in cn20k_enable_pfvf_mbox_intr() 113 if (numvfs > 64) { in cn20k_enable_pfvf_mbox_intr() 114 numvfs -= 64; in cn20k_enable_pfvf_mbox_intr() 116 INTR_MASK(numvfs)); in cn20k_enable_pfvf_mbox_intr() 118 INTR_MASK(numvfs)); in cn20k_enable_pfvf_mbox_intr() 122 void cn20k_disable_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs) in cn20k_disable_pfvf_mbox_intr() argument 135 if (numvfs > 64) { in cn20k_disable_pfvf_mbox_intr() 171 int cn20k_register_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs) in cn20k_register_pfvf_mbox_intr() argument [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_switch.c | 89 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 D | rvu_rep.c | 328 int pf, vf, numvfs; in rvu_rep_install_mcam_rules() local 354 rvu_get_pf_numvfs(rvu, pf, &numvfs, NULL); in rvu_rep_install_mcam_rules() 355 for (vf = 0; vf < numvfs; vf++) { in rvu_rep_install_mcam_rules() 449 int pf, vf, numvfs, hwvf, rep = 0; in rvu_mbox_handler_get_rep_cnt() local 468 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_mbox_handler_get_rep_cnt() 469 for (vf = 0; vf < numvfs; vf++) { in rvu_mbox_handler_get_rep_cnt()
|
| H A D | rvu.c | 404 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf) in rvu_get_pf_numvfs() argument 410 if (numvfs) in rvu_get_pf_numvfs() 411 *numvfs = (cfg >> 12) & 0xFF; in rvu_get_pf_numvfs() 605 int pf, vf, numvfs, hwvf, err; in rvu_setup_msix_resources() local 617 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_msix_resources() 654 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources() 793 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local 819 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_pfvf_macaddress() 820 for (vf = 0; vf < numvfs; vf++, hwvf++) { in rvu_setup_pfvf_macaddress() 2090 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local 2946 u16 pcifunc, numvfs, vf; rvu_flr_handler() local 2972 rvu_afvf_queue_flr_work(struct rvu * rvu,int start_vf,int numvfs) rvu_afvf_queue_flr_work() argument [all...] |
| H A D | rvu_cgx.c | 129 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 D | rvu_nix.c | 3633 int err, pf, numvfs, idx; in nix_setup_mce_tables() 3645 numvfs = (cfg >> 12) & 0xFF; in nix_setup_mce_tables() 3654 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1, NIX_MCAST_INGRESS); in nix_setup_mce_tables() 3655 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 3658 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1, NIX_MCAST_INGRESS); in nix_setup_mce_tables() 3659 nix_mce_list_init(&pfvf->mcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 3662 pfvf->promisc_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1, NIX_MCAST_INGRESS); in nix_setup_mce_tables() 3663 nix_mce_list_init(&pfvf->promisc_mce_list, numvfs + 1); in nix_setup_mce_tables() 3665 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_mce_tables() 4605 int numvfs, hwv in nix_find_link_frs() 3601 int err, pf, numvfs, idx; nix_setup_mce_tables() local 4573 int numvfs, hwvf; nix_find_link_frs() local [all...] |
| H A D | rvu.h | 920 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_sriov.c | 299 * @numvfs: Number of virtual functions (VFs) to enable. in adf_init_pf_wq() 301 * Note that the @numvfs parameter is ignored and all VFs supported by the in adf_init_pf_wq() 308 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_exit_pf_wq() 317 if (numvfs) 282 adf_sriov_configure(struct pci_dev * pdev,int numvfs) adf_sriov_configure() argument
|
| /linux/drivers/misc/genwqe/ |
| H A D | card_base.c | 1326 static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs) in genwqe_sriov_configure() argument 1331 if (numvfs > 0) { in genwqe_sriov_configure() 1333 rc = pci_enable_sriov(dev, numvfs); in genwqe_sriov_configure() 1336 return numvfs; in genwqe_sriov_configure() 1338 if (numvfs == 0) { in genwqe_sriov_configure()
|
| /linux/drivers/pci/ |
| H A D | iov.c | 1251 * @numvfs: number that should be used for TotalVFs supported 1257 * value of numvfs valid. If not a PF return -ENOSYS; in pci_sriov_set_totalvfs() 1258 * if numvfs is invalid return -EINVAL; in pci_sriov_set_totalvfs() 1261 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() 1266 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs() 1273 dev->sriov->driver_max_VFs = numvfs; 1255 pci_sriov_set_totalvfs(struct pci_dev * dev,u16 numvfs) pci_sriov_set_totalvfs() argument
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 3472 int pf, vf, numvfs; 3479 numvfs = (cfg >> 12) & 0xFF; in npc_defrag_skip_restricted_sb() 3497 for (vf = 0; vf < numvfs; vf++) { in npc_subbank_min_vidx() 3429 int pf, vf, numvfs; npc_pcifunc_map_create() local
|