Lines Matching refs:vfs
26 struct ice_vfs *vfs = &pf->vfs; in ice_free_vf_entries() local
35 lockdep_assert_held(&vfs->table_lock); in ice_free_vf_entries()
37 hash_for_each_safe(vfs->table, bkt, tmp, vf, entry) { in ice_free_vf_entries()
82 last_vector_idx = vf->first_vector_idx + pf->vfs.num_msix_per - 1; in ice_free_vf_res()
120 last = first + pf->vfs.num_msix_per - 1; in ice_dis_vf_mappings()
177 struct ice_vfs *vfs = &pf->vfs; in ice_free_vfs() local
197 mutex_lock(&vfs->table_lock); in ice_free_vfs()
222 if (ice_mbx_clear_malvf(&hw->mbx_snapshot, pf->vfs.malvfs, in ice_free_vfs()
233 vfs->num_qps_per = 0; in ice_free_vfs()
236 mutex_unlock(&vfs->table_lock); in ice_free_vfs()
283 return pf->sriov_base_vector + vf->vf_id * pf->vfs.num_msix_per; in ice_calc_vf_first_vector_idx()
305 pf_based_last_msix = (pf_based_first_msix + pf->vfs.num_msix_per) - 1; in ice_ena_vf_msix_mappings()
310 (device_based_first_msix + pf->vfs.num_msix_per) - 1; in ice_ena_vf_msix_mappings()
421 return pf->sriov_base_vector + pf->vfs.num_msix_per * vf->vf_id + in ice_calc_vf_reg_idx()
512 lockdep_assert_held(&pf->vfs.table_lock); in ice_set_per_vf_res()
569 pf->vfs.num_qps_per = min_t(int, num_txq, num_rxq); in ice_set_per_vf_res()
570 pf->vfs.num_msix_per = num_msix_per_vf; in ice_set_per_vf_res()
572 num_vfs, pf->vfs.num_msix_per, pf->vfs.num_qps_per); in ice_set_per_vf_res()
650 lockdep_assert_held(&pf->vfs.table_lock); in ice_start_vfs()
861 struct ice_vfs *vfs = &pf->vfs; in ice_create_vf_entries() local
866 lockdep_assert_held(&vfs->table_lock); in ice_create_vf_entries()
885 vf->num_vf_qs = pf->vfs.num_qps_per; in ice_create_vf_entries()
898 hash_add_rcu(vfs->table, &vf->entry, vf_id); in ice_create_vf_entries()
929 mutex_lock(&pf->vfs.table_lock); in ice_ena_vfs()
964 mutex_unlock(&pf->vfs.table_lock); in ice_ena_vfs()
971 mutex_unlock(&pf->vfs.table_lock); in ice_ena_vfs()
998 if (num_vfs > pf->vfs.num_supported) { in ice_pci_sriov_ena()
1000 num_vfs, pf->vfs.num_supported); in ice_pci_sriov_ena()
1106 mutex_lock(&pf->vfs.table_lock); in ice_process_vflr_event()
1118 mutex_unlock(&pf->vfs.table_lock); in ice_process_vflr_event()
1786 if (time_is_after_jiffies(pf->vfs.last_printed_mdd_jiffies + HZ * 1)) in ice_print_vfs_mdd_events()
1789 pf->vfs.last_printed_mdd_jiffies = jiffies; in ice_print_vfs_mdd_events()
1791 mutex_lock(&pf->vfs.table_lock); in ice_print_vfs_mdd_events()
1810 mutex_unlock(&pf->vfs.table_lock); in ice_print_vfs_mdd_events()
1886 status = ice_mbx_report_malvf(&pf->hw, pf->vfs.malvfs, in ice_is_malicious_vf()