Lines Matching refs:fdir_prof
176 if (!fdir->fdir_prof) { in ice_vc_fdir_alloc_prof()
177 fdir->fdir_prof = devm_kcalloc(ice_pf_to_dev(vf->pf), in ice_vc_fdir_alloc_prof()
179 sizeof(*fdir->fdir_prof), in ice_vc_fdir_alloc_prof()
181 if (!fdir->fdir_prof) in ice_vc_fdir_alloc_prof()
185 if (!fdir->fdir_prof[flow]) { in ice_vc_fdir_alloc_prof()
186 fdir->fdir_prof[flow] = devm_kzalloc(ice_pf_to_dev(vf->pf), in ice_vc_fdir_alloc_prof()
187 sizeof(**fdir->fdir_prof), in ice_vc_fdir_alloc_prof()
189 if (!fdir->fdir_prof[flow]) in ice_vc_fdir_alloc_prof()
206 if (!fdir->fdir_prof) in ice_vc_fdir_free_prof()
209 if (!fdir->fdir_prof[flow]) in ice_vc_fdir_free_prof()
212 devm_kfree(ice_pf_to_dev(vf->pf), fdir->fdir_prof[flow]); in ice_vc_fdir_free_prof()
213 fdir->fdir_prof[flow] = NULL; in ice_vc_fdir_free_prof()
225 if (!fdir->fdir_prof) in ice_vc_fdir_free_prof_all()
231 devm_kfree(ice_pf_to_dev(vf->pf), fdir->fdir_prof); in ice_vc_fdir_free_prof_all()
232 fdir->fdir_prof = NULL; in ice_vc_fdir_free_prof_all()
490 if (!fdir->fdir_prof || !fdir->fdir_prof[flow]) in ice_vc_fdir_rem_prof()
493 vf_prof = fdir->fdir_prof[flow]; in ice_vc_fdir_rem_prof()
661 vf_prof = fdir->fdir_prof[flow]; in ice_vc_fdir_write_flow_prof()