/linux-6.12.1/drivers/crypto/intel/qat/qat_common/ |
D | adf_pfvf_pf_msg.c | 17 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting() 37 int num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_wait_for_restarting_complete() 60 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarted() 75 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_fatal_error()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 205 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()
|
D | mlx5_core.h | 301 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled()
|
D | devlink.c | 166 if (mlx5_core_is_pf(dev) && pci_num_vf(pdev)) in mlx5_devlink_reload_down()
|
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/ |
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() 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()
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_pci_sriov.c | 112 u16 num_vfs = pci_num_vf(pdev); in pf_disable_vfs() 159 if (num_vfs && pci_num_vf(pdev)) in xe_pci_sriov_configure()
|
D | xe_sriov_pf.c | 103 drm_printf(p, "enabled: %u\n", pci_num_vf(pdev)); in xe_sriov_pf_print_vfs_summary()
|
/linux-6.12.1/drivers/pci/hotplug/ |
D | s390_pci_hpc.c | 61 if (pdev && pci_num_vf(pdev)) { in disable_slot()
|
/linux-6.12.1/drivers/crypto/cavium/nitrox/ |
D | nitrox_sriov.c | 163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
|
/linux-6.12.1/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 731 if (pci_num_vf(edev->physfn ? edev->physfn : edev->pdev)) { in pseries_call_allow_unfreeze() 733 cur_vfs = pci_num_vf(edev->pdev); in pseries_call_allow_unfreeze()
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/misc/ |
D | mrvl_cn10k_dpi.c | 273 for (vf = 0; vf < pci_num_vf(dpi->pdev); vf++) { in dpi_mbox_intr_handler() 332 if (vfid >= pci_num_vf(dpi->pdev)) in dpi_pfvf_mbox_work()
|
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 160 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()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 866 for (i = 0; i < pci_num_vf(pf->pdev); i++) { in otx2_mbox_up_handler_cgx_link_event() 951 if (devid && pci_num_vf(pf->pdev)) { in otx2_pfaf_mbox_up_handler() 1701 for (vf = 0; vf < pci_num_vf(pfvf->pdev); vf++) in otx2_promisc_use_mce_list() 2568 if (vf >= pci_num_vf(pdev)) in otx2_set_vf_vlan() 2594 if (vf >= pci_num_vf(pdev)) in otx2_get_vf_config() 2747 if (vf >= pci_num_vf(pdev)) in otx2_ndo_set_vf_trust() 3225 int numvfs = pci_num_vf(pdev); in otx2_sriov_disable()
|
/linux-6.12.1/drivers/pci/ |
D | iov.c | 1100 int pci_num_vf(struct pci_dev *dev) in pci_num_vf() function 1107 EXPORT_SYMBOL_GPL(pci_num_vf);
|
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/ |
D | ionic_bus_pci.c | 358 num_vfs = pci_num_vf(pdev); in ionic_probe()
|
D | ionic_lif.c | 2363 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config() 2395 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats() 2434 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac() 2473 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_vlan() 2506 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_rate() 2534 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_spoofchk() 2562 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_trust() 2605 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_link_state()
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.c | 2299 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_fd_counter() 2687 u8 func_num = pci_num_vf(hdev->pdev) + 1; in hclge_dbg_dump_umv_info() 2886 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_vlan_filter_config() 2939 u8 func_num = pci_num_vf(hdev->pdev) + 1; /* pf and enabled vf num */ in hclge_dbg_dump_vlan_offload_config()
|
/linux-6.12.1/drivers/vfio/pci/ |
D | vfio_pci_core.c | 241 if (pci_num_vf(pdev) && state > PCI_D0) in vfio_pci_set_power_state() 2158 if (pci_num_vf(pdev)) { in vfio_pci_core_register_device() 2298 if (pci_num_vf(pdev)) { in vfio_pci_core_sriov_configure()
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_sriov.c | 1085 for (id = 0; id < pci_num_vf(pdev); id++) { in ice_sriov_set_msix_vec_count() 1090 if (id == pci_num_vf(pdev)) in ice_sriov_set_msix_vec_count()
|
/linux-6.12.1/drivers/net/ethernet/sfc/ |
D | ef10_sriov.c | 456 if (pci_num_vf(efx->pci_dev) && !pci_vfs_assigned(efx->pci_dev)) in efx_ef10_sriov_fini()
|
/linux-6.12.1/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 1124 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()
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/ |
D | nfp_main.c | 847 pf->num_vfs = pci_num_vf(pdev); in nfp_pci_probe()
|
/linux-6.12.1/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptpf_main.c | 648 int num_vfs = pci_num_vf(pdev); in cptpf_sriov_disable()
|
/linux-6.12.1/drivers/vdpa/octeon_ep/ |
D | octep_vdpa_main.c | 711 if (!pci_num_vf(pdev)) in octep_sriov_disable()
|