/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | sriov.c | 167 int num_vfs = pci_num_vf(dev->pdev); in mlx5_sriov_disable() 205 mlx5_get_default_msix_vec_count(dev, pci_num_vf(pf)); in mlx5_core_sriov_set_msix_vec_count() 212 for (id = 0; id < pci_num_vf(pf); id++) { in mlx5_core_sriov_set_msix_vec_count() 220 if (id == pci_num_vf(pf) || !sriov->vfs_ctx[id].enabled) in mlx5_core_sriov_set_msix_vec_count() 228 if (!mlx5_core_is_pf(dev) || !pci_num_vf(dev->pdev)) in mlx5_sriov_attach() 232 return mlx5_device_enable_sriov(dev, pci_num_vf(dev->pdev)); in mlx5_sriov_attach() 240 mlx5_device_disable_sriov(dev, pci_num_vf(dev->pdev), false); in mlx5_sriov_detach() 278 sriov->num_vfs = pci_num_vf(pdev); in mlx5_sriov_init()
|
A D | mlx5_core.h | 245 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled()
|
A D | devlink.c | 157 if (pci_num_vf(pdev)) { in mlx5_devlink_reload_down()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_vfr.c | 271 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_close() 291 for (i = 0; i < pci_num_vf(bp->pdev); i++) { in bnxt_vf_reps_open() 315 u16 num_vfs = pci_num_vf(bp->pdev); in __bnxt_vf_reps_destroy() 378 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_free() 415 u16 *cfa_code_map = bp->cfa_code_map, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_alloc() 487 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create() 585 if (pci_num_vf(bp->pdev) == 0) { in bnxt_dl_eswitch_mode_set()
|
A D | bnxt_sriov.c | 843 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_sriov_disable()
|
/linux/drivers/pci/hotplug/ |
A D | s390_pci_hpc.c | 51 if (pdev && pci_num_vf(pdev)) { in disable_slot()
|
/linux/drivers/crypto/cavium/nitrox/ |
A D | nitrox_sriov.c | 163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | eeh_pseries.c | 729 if (pci_num_vf(edev->physfn ? edev->physfn : edev->pdev)) { in pseries_call_allow_unfreeze() 731 cur_vfs = pci_num_vf(edev->pdev); in pseries_call_allow_unfreeze()
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A 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()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_sriov.c | 158 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/drivers/crypto/qat/qat_common/ |
A D | adf_pf2vf_msg.c | 334 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_lif.c | 2167 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config() 2197 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats() 2235 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac() 2269 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_vlan() 2298 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_rate() 2323 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_spoofchk() 2348 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_trust() 2387 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_link_state()
|
A D | ionic_bus_pci.c | 314 num_vfs = pci_num_vf(pdev); in ionic_probe()
|
/linux/drivers/pci/ |
A D | iov.c | 1055 int pci_num_vf(struct pci_dev *dev) in pci_num_vf() function 1062 EXPORT_SYMBOL_GPL(pci_num_vf);
|
A D | pci-driver.c | 1581 return pci_num_vf(to_pci_dev(dev)); in pci_bus_num_vf()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_pf.c | 866 for (i = 0; i < pci_num_vf(pf->pdev); i++) { in otx2_mbox_up_handler_cgx_link_event() 2272 if (vf >= pci_num_vf(pdev)) in otx2_set_vf_vlan() 2298 if (vf >= pci_num_vf(pdev)) in otx2_get_vf_config() 2450 if (vf >= pci_num_vf(pdev)) in otx2_ndo_set_vf_trust() 2887 int numvfs = pci_num_vf(pdev); in otx2_sriov_disable()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_debugfs.c | 1586 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_fd_counter() 1968 u8 func_num = pci_num_vf(hdev->pdev) + 1; in hclge_dbg_dump_umv_info() 2167 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_vlan_filter_config() 2220 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_vlan_offload_config()
|
/linux/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptpf_main.c | 623 int num_vfs = pci_num_vf(pdev); in cptpf_sriov_disable()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_main.c | 754 pf->num_vfs = pci_num_vf(pdev); in nfp_pci_probe()
|
/linux/drivers/net/ethernet/sfc/ |
A D | ef10_sriov.c | 452 if (pci_num_vf(efx->pci_dev) && !pci_vfs_assigned(efx->pci_dev)) in efx_ef10_sriov_fini()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A D | qede_main.c | 1026 if (pci_num_vf(edev->pdev)) in qede_sp_task() 1055 if (pci_num_vf(edev->pdev)) in qede_sp_task() 2245 if ((qed_info->b_inter_pf_switch || pci_num_vf(edev->pdev)) && in qede_start_queues()
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_ethtool.c | 1949 if (pci_num_vf(bp->pdev)) { in bnx2x_set_ringparam() 3012 if (pci_num_vf(bp->pdev)) { in bnx2x_self_test() 3599 if (pci_num_vf(bp->pdev)) { in bnx2x_set_channels()
|
A D | bnx2x_cmn.c | 4877 if (pci_num_vf(bp->pdev)) { in bnx2x_change_mtu() 4907 if (pci_num_vf(bp->pdev)) { in bnx2x_fix_features() 4944 if (!pci_num_vf(bp->pdev)) { in bnx2x_set_features()
|
/linux/drivers/net/ethernet/emulex/benet/ |
A 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() 4784 return pci_num_vf(adapter->pdev) == 0; in be_reset_required() 6064 if (skyhawk_chip(adapter) && !pci_num_vf(pdev)) { in be_pci_sriov_configure()
|
/linux/include/linux/ |
A D | pci.h | 2161 int pci_num_vf(struct pci_dev *dev); 2197 static inline int pci_num_vf(struct pci_dev *dev) { return 0; } in pci_num_vf() function
|