Lines Matching refs:mbx_vf
238 if (vf_id >= snap->mbx_vf.vfcntr_len) in ice_mbx_detect_malvf()
242 snap->mbx_vf.vf_cntr[vf_id]++; in ice_mbx_detect_malvf()
244 if (snap->mbx_vf.vf_cntr[vf_id] >= ICE_ASYNC_VF_MSG_THRESHOLD) in ice_mbx_detect_malvf()
263 if (!snap || !snap->mbx_vf.vf_cntr) in ice_mbx_reset_snapshot()
267 vfcntr_len = snap->mbx_vf.vfcntr_len; in ice_mbx_reset_snapshot()
269 memset(snap->mbx_vf.vf_cntr, 0, in ice_mbx_reset_snapshot()
270 (vfcntr_len * sizeof(*snap->mbx_vf.vf_cntr))); in ice_mbx_reset_snapshot()
417 if (bitmap_len < hw->mbx_snapshot.mbx_vf.vfcntr_len) in ice_mbx_report_malvf()
451 if (bitmap_len < snap->mbx_vf.vfcntr_len) in ice_mbx_clear_malvf()
455 if (vf_id >= bitmap_len || vf_id >= snap->mbx_vf.vfcntr_len) in ice_mbx_clear_malvf()
467 snap->mbx_vf.vf_cntr[vf_id] = 0; in ice_mbx_clear_malvf()
496 snap->mbx_vf.vf_cntr = devm_kcalloc(ice_hw_to_dev(hw), vf_count, in ice_mbx_init_snapshot()
497 sizeof(*snap->mbx_vf.vf_cntr), in ice_mbx_init_snapshot()
499 if (!snap->mbx_vf.vf_cntr) in ice_mbx_init_snapshot()
505 snap->mbx_vf.vfcntr_len = vf_count; in ice_mbx_init_snapshot()
527 devm_kfree(ice_hw_to_dev(hw), snap->mbx_vf.vf_cntr); in ice_mbx_deinit_snapshot()
528 snap->mbx_vf.vfcntr_len = 0; in ice_mbx_deinit_snapshot()