Lines Matching refs:num_vfs
179 i = iov_data->num_vfs; in fm10k_iov_event()
226 for (i = iov_data->next_vf_mbx ? : iov_data->num_vfs; i--;) { in fm10k_iov_mbx()
287 int num_vfs, i; in fm10k_iov_suspend() local
290 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_suspend()
297 for (i = 0; i < num_vfs; i++) { in fm10k_iov_suspend()
332 int num_vfs, i; in fm10k_iov_resume() local
335 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_resume()
348 hw->iov.ops.assign_resources(hw, num_vfs, num_vfs); in fm10k_iov_resume()
362 for (i = 0; i < num_vfs; i++) { in fm10k_iov_resume()
395 if (vf_idx >= iov_data->num_vfs) in fm10k_iov_update_pvid()
423 static s32 fm10k_iov_alloc_data(struct pci_dev *pdev, int num_vfs) in fm10k_iov_alloc_data() argument
440 if (!num_vfs) in fm10k_iov_alloc_data()
444 size = offsetof(struct fm10k_iov_data, vf_info[num_vfs]); in fm10k_iov_alloc_data()
450 iov_data->num_vfs = num_vfs; in fm10k_iov_alloc_data()
453 for (i = 0; i < num_vfs; i++) { in fm10k_iov_alloc_data()
491 int fm10k_iov_configure(struct pci_dev *pdev, int num_vfs) in fm10k_iov_configure() argument
499 num_vfs = current_vfs; in fm10k_iov_configure()
506 err = fm10k_iov_alloc_data(pdev, num_vfs); in fm10k_iov_configure()
511 if (num_vfs && num_vfs != current_vfs) { in fm10k_iov_configure()
512 err = pci_enable_sriov(pdev, num_vfs); in fm10k_iov_configure()
520 return num_vfs; in fm10k_iov_configure()
540 for (i = 0; i < iov_data->num_vfs; i++) in fm10k_iov_update_stats()
574 if (!iov_data || vf_idx >= iov_data->num_vfs) in fm10k_ndo_set_vf_mac()
599 if (!iov_data || vf_idx >= iov_data->num_vfs) in fm10k_ndo_set_vf_vlan()
635 if (!iov_data || vf_idx >= iov_data->num_vfs) in fm10k_ndo_set_vf_bw()
660 if (!iov_data || vf_idx >= iov_data->num_vfs) in fm10k_ndo_get_vf_config()
685 if (!iov_data || vf_idx >= iov_data->num_vfs) in fm10k_ndo_get_vf_stats()