/drivers/crypto/marvell/octeontx/ |
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()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 189 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr() argument 216 if (numvfs > 64) { in otx2_register_flr_me_intr() 241 otx2_write64(pf, RVU_PF_VFME_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 242 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 245 otx2_write64(pf, RVU_PF_VFFLR_INTX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 246 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1SX(0), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 248 if (numvfs > 64) { in otx2_register_flr_me_intr() 249 numvfs -= 64; in otx2_register_flr_me_intr() 251 otx2_write64(pf, RVU_PF_VFME_INTX(1), INTR_MASK(numvfs)); in otx2_register_flr_me_intr() 253 INTR_MASK(numvfs)); in otx2_register_flr_me_intr() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
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()
|
D | rvu.c | 403 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf) in rvu_get_pf_numvfs() argument 409 if (numvfs) in rvu_get_pf_numvfs() 410 *numvfs = (cfg >> 12) & 0xFF; in rvu_get_pf_numvfs() 603 int pf, vf, numvfs, hwvf, err; in rvu_setup_msix_resources() local 615 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_msix_resources() 652 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources() 763 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local 789 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in rvu_setup_pfvf_macaddress() 790 for (vf = 0; vf < numvfs; vf++, hwvf++) { in rvu_setup_pfvf_macaddress() 1911 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local [all …]
|
D | rvu_cgx.c | 126 int numvfs, hwvfs; in rvu_map_cgx_lmac_pf() local 167 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvfs); in rvu_map_cgx_lmac_pf() 168 rvu->cgx_mapped_vfs += numvfs; in rvu_map_cgx_lmac_pf()
|
D | rvu_nix.c | 2975 int err, pf, numvfs, idx; in nix_setup_mce_tables() local 2987 numvfs = (cfg >> 12) & 0xFF; in nix_setup_mce_tables() 2996 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 2997 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 3000 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 3001 nix_mce_list_init(&pfvf->mcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 3004 pfvf->promisc_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 3005 nix_mce_list_init(&pfvf->promisc_mce_list, numvfs + 1); in nix_setup_mce_tables() 3007 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_mce_tables() 3841 int numvfs, hwvf; in nix_find_link_frs() local [all …]
|
D | rvu.h | 664 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
|
D | rvu_debugfs.c | 2227 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local 2278 numvfs = (cfg >> 12) & 0xFF; in rvu_dbg_npc_mcam_info_display() 2279 for (vf = 0; vf < numvfs; vf++) { in rvu_dbg_npc_mcam_info_display()
|
/drivers/crypto/qat/qat_common/ |
D | adf_sriov.c | 129 int adf_sriov_configure(struct pci_dev *pdev, int numvfs) in adf_sriov_configure() argument 192 return numvfs; in adf_sriov_configure()
|
D | adf_common_drv.h | 187 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
|
/drivers/misc/genwqe/ |
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()
|
/drivers/pci/ |
D | iov.c | 1120 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument 1125 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs() 1132 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
|