Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/mellanox/mlx5/core/
Dsriov.c205 int num_vfs = pci_num_vf(dev->pdev); in mlx5_sriov_disable()
245 mlx5_get_default_msix_vec_count(dev, pci_num_vf(pf)); in mlx5_core_sriov_set_msix_vec_count()
257 if (!mlx5_core_is_pf(dev) || !pci_num_vf(dev->pdev)) in mlx5_sriov_attach()
261 return mlx5_device_enable_sriov(dev, pci_num_vf(dev->pdev)); in mlx5_sriov_attach()
269 mlx5_device_disable_sriov(dev, pci_num_vf(dev->pdev), false, false); in mlx5_sriov_detach()
306 sriov->num_vfs = pci_num_vf(pdev); in mlx5_sriov_init()
Dmlx5_core.h285 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled()
Ddevlink.c177 if (mlx5_core_is_pf(dev) && pci_num_vf(pdev)) in mlx5_devlink_reload_down()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_vfr.c271 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()
383 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_free()
420 u16 *cfa_code_map = bp->cfa_code_map, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_alloc()
493 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create()
588 if (pci_num_vf(bp->pdev) > 0) in bnxt_dl_eswitch_mode_set()
Dbnxt_sriov.c861 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_sriov_disable()
/drivers/crypto/intel/qat/qat_common/
Dadf_pfvf_pf_msg.c13 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting()
/drivers/pci/hotplug/
Ds390_pci_hpc.c51 if (pdev && pci_num_vf(pdev)) { in disable_slot()
/drivers/crypto/cavium/nitrox/
Dnitrox_sriov.c163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
/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()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c160 pre_existing_vfs = pci_num_vf(adapter->pdev); in ixgbe_enable_sriov()
275 int pre_existing_vfs = pci_num_vf(dev); in ixgbe_pci_sriov_enable()
340 int prev_num_vf = pci_num_vf(dev); in ixgbe_pci_sriov_disable()
348 prev_num_vf != pci_num_vf(dev))) in ixgbe_pci_sriov_disable()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c870 for (i = 0; i < pci_num_vf(pf->pdev); i++) { in otx2_mbox_up_handler_cgx_link_event()
955 if (devid && pci_num_vf(pf->pdev)) { in otx2_pfaf_mbox_up_handler()
1688 for (vf = 0; vf < pci_num_vf(pfvf->pdev); vf++) in otx2_promisc_use_mce_list()
2547 if (vf >= pci_num_vf(pdev)) in otx2_set_vf_vlan()
2573 if (vf >= pci_num_vf(pdev)) in otx2_get_vf_config()
2726 if (vf >= pci_num_vf(pdev)) in otx2_ndo_set_vf_trust()
3201 int numvfs = pci_num_vf(pdev); in otx2_sriov_disable()
/drivers/pci/
Diov.c1097 int pci_num_vf(struct pci_dev *dev) in pci_num_vf() function
1104 EXPORT_SYMBOL_GPL(pci_num_vf);
Dpci-driver.c1639 return pci_num_vf(to_pci_dev(dev)); in pci_bus_num_vf()
/drivers/net/ethernet/pensando/ionic/
Dionic_lif.c2416 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config()
2450 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats()
2489 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac()
2528 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_vlan()
2561 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_rate()
2589 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_spoofchk()
2617 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_trust()
2660 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_link_state()
Dionic_bus_pci.c350 num_vfs = pci_num_vf(pdev); in ionic_probe()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c1654 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_fd_counter()
2042 u8 func_num = pci_num_vf(hdev->pdev) + 1; in hclge_dbg_dump_umv_info()
2241 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_vlan_filter_config()
2294 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_vlan_offload_config()
/drivers/vfio/pci/
Dvfio_pci_core.c245 if (pci_num_vf(pdev) && state > PCI_D0) in vfio_pci_set_power_state()
2241 if (pci_num_vf(pdev)) { in vfio_pci_core_register_device()
2381 if (pci_num_vf(pdev)) { in vfio_pci_core_sriov_configure()
/drivers/net/ethernet/sfc/
Def10_sriov.c456 if (pci_num_vf(efx->pci_dev) && !pci_vfs_assigned(efx->pci_dev)) in efx_ef10_sriov_fini()
/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_main.c671 int num_vfs = pci_num_vf(pdev); in cptpf_sriov_disable()
/drivers/net/ethernet/qlogic/qede/
Dqede_main.c1124 if (pci_num_vf(edev->pdev)) in qede_sp_task()
1153 if (pci_num_vf(edev->pdev)) in qede_sp_task()
2348 if ((qed_info->b_inter_pf_switch || pci_num_vf(edev->pdev)) && in qede_start_queues()
/drivers/net/ethernet/netronome/nfp/
Dnfp_main.c847 pf->num_vfs = pci_num_vf(pdev); in nfp_pci_probe()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1953 if (pci_num_vf(bp->pdev)) { in bnx2x_set_ringparam()
3016 if (pci_num_vf(bp->pdev)) { in bnx2x_self_test()
3603 if (pci_num_vf(bp->pdev)) { in bnx2x_set_channels()
/drivers/net/ethernet/emulex/benet/
Dbe_main.c4227 old_vfs = pci_num_vf(adapter->pdev); in be_vf_setup()
4460 old_vfs = pci_num_vf(adapter->pdev); in be_get_sriov_config()
4481 int old_vfs = pci_num_vf(adapter->pdev); in be_alloc_sriov_res()
4785 return pci_num_vf(adapter->pdev) == 0; in be_reset_required()
6051 if (skyhawk_chip(adapter) && !pci_num_vf(pdev)) { in be_pci_sriov_configure()
/drivers/net/ethernet/intel/ice/
Dice_sriov.c1722 if (!pci_num_vf(pdev)) in ice_restore_all_vfs_msi_state()
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c167 if (!pci_num_vf(pdev)) in i40e_restore_all_vfs_msi_state()
1832 if (pci_num_vf(pf->pdev) != num_alloc_vfs) { in i40e_alloc_vfs()
1889 int pre_existing_vfs = pci_num_vf(pdev); in i40e_pci_sriov_enable()

12