/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 157 int num_vfs = pci_num_vf(dev->pdev); in mlx5_sriov_disable() 183 if (!mlx5_core_is_pf(dev) || !pci_num_vf(dev->pdev)) in mlx5_sriov_attach() 187 return mlx5_device_enable_sriov(dev, pci_num_vf(dev->pdev)); in mlx5_sriov_attach() 195 mlx5_device_disable_sriov(dev, pci_num_vf(dev->pdev), false); in mlx5_sriov_detach() 233 sriov->num_vfs = pci_num_vf(pdev); in mlx5_sriov_init()
|
D | mlx5_core.h | 223 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_vfr.c | 267 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_close() 287 for (i = 0; i < pci_num_vf(bp->pdev); i++) in bnxt_vf_reps_open() 293 u16 num_vfs = pci_num_vf(bp->pdev); in __bnxt_vf_reps_destroy() 395 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create() 509 if (pci_num_vf(bp->pdev) == 0) { in bnxt_dl_eswitch_mode_set()
|
D | bnxt_sriov.c | 816 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_sriov_disable()
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
D | s390_pci_hpc.c | 92 if (pdev && pci_num_vf(pdev)) { in disable_slot()
|
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
D | nitrox_sriov.c | 163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 730 if (pci_num_vf(edev->physfn ? edev->physfn : edev->pdev)) { in pseries_call_allow_unfreeze() 732 cur_vfs = pci_num_vf(edev->pdev); in pseries_call_allow_unfreeze()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 482 if (pci_num_vf(pdev) && pci_vfs_assigned(pdev)) in fm10k_iov_disable() 493 int current_vfs = pci_num_vf(pdev); in fm10k_iov_configure()
|
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
D | adf_pf2vf_msg.c | 293 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 159 pre_existing_vfs = pci_num_vf(adapter->pdev); in ixgbe_enable_sriov() 271 int pre_existing_vfs = pci_num_vf(dev); in ixgbe_pci_sriov_enable() 336 int prev_num_vf = pci_num_vf(dev); in ixgbe_pci_sriov_disable() 344 prev_num_vf != pci_num_vf(dev))) in ixgbe_pci_sriov_disable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_lif.c | 1920 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config() 1950 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats() 1988 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac() 2022 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_vlan() 2051 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_rate() 2076 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_spoofchk() 2101 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_trust() 2140 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_link_state()
|
D | ionic_bus_pci.c | 310 num_vfs = pci_num_vf(pdev); in ionic_probe()
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | iov.c | 960 int pci_num_vf(struct pci_dev *dev) in pci_num_vf() function 967 EXPORT_SYMBOL_GPL(pci_num_vf);
|
D | pci-driver.c | 1568 return pci_num_vf(to_pci_dev(dev)); in pci_bus_num_vf()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 852 for (i = 0; i < pci_num_vf(pf->pdev); i++) { in otx2_mbox_up_handler_cgx_link_event() 2265 int numvfs = pci_num_vf(pdev); in otx2_sriov_disable() 2273 for (i = 0; i < pci_num_vf(pdev); i++) in otx2_sriov_disable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | ef10_sriov.c | 453 if (pci_num_vf(efx->pci_dev) && !pci_vfs_assigned(efx->pci_dev)) in efx_ef10_sriov_fini()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_main.c | 769 pf->num_vfs = pci_num_vf(pdev); in nfp_pci_probe()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 1027 if (pci_num_vf(edev->pdev)) in qede_sp_task() 1056 if (pci_num_vf(edev->pdev)) in qede_sp_task() 2244 if ((qed_info->b_inter_pf_switch || pci_num_vf(edev->pdev)) && in qede_start_queues()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 1945 if (pci_num_vf(bp->pdev)) { in bnx2x_set_ringparam() 3008 if (pci_num_vf(bp->pdev)) { in bnx2x_self_test() 3595 if (pci_num_vf(bp->pdev)) { in bnx2x_set_channels()
|
D | bnx2x_cmn.c | 4876 if (pci_num_vf(bp->pdev)) { in bnx2x_change_mtu() 4906 if (pci_num_vf(bp->pdev)) { in bnx2x_fix_features() 4943 if (!pci_num_vf(bp->pdev)) { in bnx2x_set_features()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 4226 old_vfs = pci_num_vf(adapter->pdev); in be_vf_setup() 4459 old_vfs = pci_num_vf(adapter->pdev); in be_get_sriov_config() 4480 int old_vfs = pci_num_vf(adapter->pdev); in be_alloc_sriov_res() 4791 return pci_num_vf(adapter->pdev) == 0; in be_reset_required() 6073 if (skyhawk_chip(adapter) && !pci_num_vf(pdev)) { in be_pci_sriov_configure()
|
/kernel/linux/linux-5.10/include/linux/ |
D | pci.h | 2090 int pci_num_vf(struct pci_dev *dev); 2126 static inline int pci_num_vf(struct pci_dev *dev) { return 0; } in pci_num_vf() function
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_pf.c | 1611 int pre_existing_vfs = pci_num_vf(pf->pdev); in ice_pci_sriov_ena() 4130 if (!pci_num_vf(pdev)) in ice_restore_all_vfs_msi_state()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.c | 1415 for (vport_id = 0; vport_id <= pci_num_vf(hdev->pdev); vport_id++) { in hclge_dbg_dump_qs_shaper_all()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1728 if (pci_num_vf(pf->pdev) != num_alloc_vfs) { in i40e_alloc_vfs() 1785 int pre_existing_vfs = pci_num_vf(pdev); in i40e_pci_sriov_enable()
|