| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A 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/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_vfr.c | 270 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_close() 289 for (i = 0; i < pci_num_vf(bp->pdev); i++) { in bnxt_vf_reps_open() 313 u16 num_vfs = pci_num_vf(bp->pdev); in __bnxt_vf_reps_destroy() 381 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_free() 418 u16 *cfa_code_map = bp->cfa_code_map, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_alloc() 491 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create() 586 if (pci_num_vf(bp->pdev) > 0) in bnxt_dl_eswitch_mode_set()
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_sriov.c | 163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H 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/pci/ |
| H A D | tsm.c | 96 for (int j = 0; j < pci_num_vf(pf); j++) { in DEFINE_FREE() 136 for (int j = pci_num_vf(pf) - 1; j >= 0; j--) { in pci_tsm_walk_fns_reverse()
|
| H A D | ide.c | 281 num_vf = pci_num_vf(pdev); in pci_ide_stream_alloc()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_sriov.c | 159 pre_existing_vfs = pci_num_vf(adapter->pdev); in ixgbe_enable_sriov() 278 int pre_existing_vfs = pci_num_vf(dev); in ixgbe_pci_sriov_enable() 343 int prev_num_vf = pci_num_vf(dev); in ixgbe_pci_sriov_disable() 351 prev_num_vf != pci_num_vf(dev))) in ixgbe_pci_sriov_disable()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_pf.c | 945 for (i = 0; i < pci_num_vf(pf->pdev); i++) { in otx2_mbox_up_handler_cgx_link_event() 1034 if (devid && pci_num_vf(pf->pdev)) { in otx2_pfaf_mbox_up_handler() 1836 for (vf = 0; vf < pci_num_vf(pfvf->pdev); vf++) in otx2_promisc_use_mce_list() 2751 if (vf >= pci_num_vf(pdev)) in otx2_set_vf_vlan() 2777 if (vf >= pci_num_vf(pdev)) in otx2_get_vf_config() 2931 if (vf >= pci_num_vf(pdev)) in otx2_ndo_set_vf_trust() 3463 int numvfs = pci_num_vf(pdev); in otx2_sriov_disable()
|
| H A D | otx2_flows.c | 1275 if (vf > pci_num_vf(pfvf->pdev)) { in otx2_add_flow_msg()
|
| /linux/drivers/net/ethernet/pensando/ionic/ |
| H A D | ionic_bus_pci.c | 361 num_vfs = pci_num_vf(pdev); in ionic_probe()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | mlx5_core.h | 409 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled()
|
| H A D | devlink.c | 221 if (mlx5_core_is_pf(dev) && pci_num_vf(pdev)) in mlx5_devlink_reload_down()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ef10_sriov.c | 455 if (pci_num_vf(efx->pci_dev) && !pci_vfs_assigned(efx->pci_dev)) in efx_ef10_sriov_fini()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_main.c | 1089 if (pci_num_vf(edev->pdev)) in qede_sp_task() 1126 if (pci_num_vf(edev->pdev)) in qede_sp_task() 2321 if ((qed_info->b_inter_pf_switch || pci_num_vf(edev->pdev)) && in qede_start_queues()
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_bond.c | 503 if (hr_dev->is_vf || pci_num_vf(hr_dev->pci_dev) > 0) { in is_dev_bond_supported()
|
| /linux/drivers/net/ethernet/emulex/benet/ |
| H A D | be_main.c | 4228 old_vfs = pci_num_vf(adapter->pdev); in be_vf_setup() 4461 old_vfs = pci_num_vf(adapter->pdev); in be_get_sriov_config() 4482 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() 6047 if (skyhawk_chip(adapter) && !pci_num_vf(pdev)) { in be_pci_sriov_configure()
|
| /linux/drivers/vdpa/octeon_ep/ |
| H A D | octep_vdpa_main.c | 849 if (!pci_num_vf(pdev)) in octep_sriov_disable()
|
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_core.c | 2256 if (pci_num_vf(pdev)) { in vfio_pci_core_register_device() 2401 if (pci_num_vf(pdev)) { in vfio_pci_core_sriov_configure()
|
| /linux/include/linux/ |
| H A D | pci.h | 2607 int pci_num_vf(struct pci_dev *dev); 2658 static inline int pci_num_vf(struct pci_dev *dev) { return 0; } in pci_num_vf() function
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_virtchnl_pf.c | 167 if (!pci_num_vf(pdev)) in i40e_restore_all_vfs_msi_state() 1838 if (pci_num_vf(pf->pdev) != num_alloc_vfs) { in i40e_alloc_vfs() 1895 int pre_existing_vfs = pci_num_vf(pdev); in i40e_pci_sriov_enable()
|
| H A D | i40e_main.c | 15880 if (pci_num_vf(pdev)) in i40e_probe() 15964 if (pci_num_vf(pdev)) { in i40e_probe() 15967 err = i40e_alloc_vfs(pf, pci_num_vf(pdev)); in i40e_probe()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_cmn.c | 4885 if (pci_num_vf(bp->pdev)) { in bnx2x_change_mtu() 4915 if (pci_num_vf(bp->pdev)) { in bnx2x_fix_features() 4952 if (!pci_num_vf(bp->pdev)) { in bnx2x_set_features()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 3000 for (i = 0; i < pci_num_vf(hdev->pdev); i++) { in hclge_push_link_status() 3454 if (!pci_num_vf(hdev->pdev)) { in hclge_get_vf_vport() 3460 if (vf < 0 || vf >= pci_num_vf(hdev->pdev)) { in hclge_get_vf_vport() 3463 vf, pci_num_vf(hdev->pdev)); in hclge_get_vf_vport() 9931 for (vf = 0; vf < pci_num_vf(hdev->pdev); vf++) { in hclge_resume_vf_rate()
|
| H A D | hclge_tm.c | 1731 *qset_num = HCLGE_TM_PF_MAX_QSET_NUM + pci_num_vf(hdev->pdev); in hclge_tm_get_qset_num()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_enet.c | 3224 int num_vfs_pre = pci_num_vf(pdev); in hns3_pci_sriov_configure()
|