/linux/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/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 | 409 if (numvfs) in rvu_get_pf_numvfs() 410 *numvfs = (cfg >> 12) & 0xFF; in rvu_get_pf_numvfs() 600 int pf, vf, numvfs, hwvf, err; in rvu_setup_msix_resources() local 649 for (vf = 0; vf < numvfs; vf++) { in rvu_setup_msix_resources() 760 int pf, vf, numvfs, hwvf; in rvu_setup_pfvf_macaddress() local 1968 u16 vf, numvfs; in rvu_mbox_handler_vf_flr() local 1974 numvfs = (cfg >> 12) & 0xFF; in rvu_mbox_handler_vf_flr() 1976 if (vf && vf <= numvfs) in rvu_mbox_handler_vf_flr() 2588 u16 pcifunc, numvfs, vf; in rvu_flr_handler() local 2599 numvfs = (cfg >> 12) & 0xFF; in rvu_flr_handler() [all …]
|
A 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()
|
A D | rvu_nix.c | 2951 int err, pf, numvfs, idx; in nix_setup_mce_tables() local 2963 numvfs = (cfg >> 12) & 0xFF; in nix_setup_mce_tables() 2972 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 2973 nix_mce_list_init(&pfvf->bcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 2976 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables() 2977 nix_mce_list_init(&pfvf->mcast_mce_list, numvfs + 1); in nix_setup_mce_tables() 2981 nix_mce_list_init(&pfvf->promisc_mce_list, numvfs + 1); in nix_setup_mce_tables() 2983 for (idx = 0; idx < (numvfs + 1); idx++) { in nix_setup_mce_tables() 3817 int numvfs, hwvf; in nix_find_link_frs() local 3830 rvu_get_pf_numvfs(rvu, pf, &numvfs, &hwvf); in nix_find_link_frs() [all …]
|
A D | rvu.h | 656 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
|
A D | rvu_debugfs.c | 2316 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local 2367 numvfs = (cfg >> 12) & 0xFF; in rvu_dbg_npc_mcam_info_display() 2368 for (vf = 0; vf < numvfs; vf++) { in rvu_dbg_npc_mcam_info_display()
|
/linux/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/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_pf.c | 223 if (numvfs > 64) { in otx2_register_flr_me_intr() 255 if (numvfs > 64) { in otx2_register_flr_me_intr() 256 numvfs -= 64; in otx2_register_flr_me_intr() 582 if (!numvfs) in otx2_pfvf_mbox_init() 666 if (numvfs > 64) { in otx2_enable_pfvf_mbox_intr() 667 numvfs -= 64; in otx2_enable_pfvf_mbox_intr() 685 if (numvfs > 64) { in otx2_disable_pfvf_mbox_intr() 713 if (numvfs > 64) { in otx2_register_pfvf_mbox_intr() 2871 return numvfs; in otx2_sriov_enable() 2889 if (!numvfs) in otx2_sriov_disable() [all …]
|
/linux/drivers/crypto/qat/qat_common/ |
A 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()
|
A D | adf_common_drv.h | 192 int adf_sriov_configure(struct pci_dev *pdev, int numvfs);
|
/linux/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/drivers/pci/ |
A D | iov.c | 1118 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument 1123 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs() 1130 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
|
/linux/include/linux/ |
A D | pci.h | 2163 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); 2200 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs() argument
|