Home
last modified time | relevance | path

Searched refs:pci_num_vf (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dsriov.c114 int num_vfs = pci_num_vf(dev->pdev); in mlx5_device_disable_sriov()
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()
233 sriov->num_vfs = pci_num_vf(pdev); in mlx5_sriov_init()
Dmlx5_core.h219 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_vfr.c268 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_close()
288 for (i = 0; i < pci_num_vf(bp->pdev); i++) in bnxt_vf_reps_open()
294 u16 num_vfs = pci_num_vf(bp->pdev); in __bnxt_vf_reps_destroy()
396 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create()
507 if (pci_num_vf(bp->pdev) == 0) { in bnxt_dl_eswitch_mode_set()
Dbnxt_sriov.c819 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_sriov_disable()
/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_sriov.c163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Deeh_pseries.c719 if (pci_num_vf(edev->physfn ? edev->physfn : edev->pdev)) { in pseries_call_allow_unfreeze()
721 cur_vfs = pci_num_vf(edev->pdev); in pseries_call_allow_unfreeze()
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c482 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()
Dfm10k_pci.c2480 if (pci_num_vf(pdev)) in fm10k_io_reset_prepare()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c158 pre_existing_vfs = pci_num_vf(adapter->pdev); in ixgbe_enable_sriov()
270 int pre_existing_vfs = pci_num_vf(dev); in ixgbe_pci_sriov_enable()
335 int prev_num_vf = pci_num_vf(dev); in ixgbe_pci_sriov_disable()
343 prev_num_vf != pci_num_vf(dev))) in ixgbe_pci_sriov_disable()
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dadf_pf2vf_msg.c343 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting()
/Linux-v5.4/drivers/pci/
Diov.c944 int pci_num_vf(struct pci_dev *dev) in pci_num_vf() function
951 EXPORT_SYMBOL_GPL(pci_num_vf);
Dpci-driver.c1612 return pci_num_vf(to_pci_dev(dev)); in pci_bus_num_vf()
/Linux-v5.4/drivers/net/ethernet/sfc/
Def10_sriov.c448 if (pci_num_vf(efx->pci_dev) && !pci_vfs_assigned(efx->pci_dev)) in efx_ef10_sriov_fini()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_main.c771 pf->num_vfs = pci_num_vf(pdev); in nfp_pci_probe()
/Linux-v5.4/drivers/crypto/hisilicon/zip/
Dzip_main.c791 pre_existing_vfs = pci_num_vf(pdev); in hisi_zip_sriov_enable()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1951 if (pci_num_vf(bp->pdev)) { in bnx2x_set_ringparam()
3014 if (pci_num_vf(bp->pdev)) { in bnx2x_self_test()
3600 if (pci_num_vf(bp->pdev)) { in bnx2x_set_channels()
Dbnx2x_cmn.c4873 if (pci_num_vf(bp->pdev)) { in bnx2x_change_mtu()
4903 if (pci_num_vf(bp->pdev)) { in bnx2x_fix_features()
4940 if (!pci_num_vf(bp->pdev)) { in bnx2x_set_features()
/Linux-v5.4/include/linux/
Dpci.h2050 int pci_num_vf(struct pci_dev *dev);
2080 static inline int pci_num_vf(struct pci_dev *dev) { return 0; } in pci_num_vf() function
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe_main.c4210 old_vfs = pci_num_vf(adapter->pdev); in be_vf_setup()
4443 old_vfs = pci_num_vf(adapter->pdev); in be_get_sriov_config()
4464 int old_vfs = pci_num_vf(adapter->pdev); in be_alloc_sriov_res()
4775 return pci_num_vf(adapter->pdev) == 0; in be_reset_required()
6204 if (skyhawk_chip(adapter) && !pci_num_vf(pdev)) { in be_pci_sriov_configure()
/Linux-v5.4/drivers/vfio/pci/
Dvfio_pci.c1309 if (pci_num_vf(pdev)) { in vfio_pci_probe()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c1587 if (pci_num_vf(pf->pdev) != num_alloc_vfs) { in i40e_alloc_vfs()
1644 int pre_existing_vfs = pci_num_vf(pdev); in i40e_pci_sriov_enable()
Di40e_main.c15050 if (pci_num_vf(pdev)) in i40e_probe()
15150 if (pci_num_vf(pdev)) { in i40e_probe()
15153 err = i40e_alloc_vfs(pf, pci_num_vf(pdev)); in i40e_probe()
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_virtchnl_pf.c1399 int pre_existing_vfs = pci_num_vf(pf->pdev); in ice_pci_sriov_ena()
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/
Dqede_main.c2143 if ((qed_info->b_inter_pf_switch || pci_num_vf(edev->pdev)) && in qede_start_queues()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dmain.c3379 existing_vfs = pci_num_vf(pdev); in mlx4_load_one()

12