Lines Matching refs:vsig
2408 ice_vsig_find_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 *vsig) in ice_vsig_find_vsi() argument
2410 if (!vsig || vsi >= ICE_MAX_VSI) in ice_vsig_find_vsi()
2417 *vsig = hw->blk[blk].xlt2.vsis[vsi].vsig; in ice_vsig_find_vsi()
2430 static u16 ice_vsig_alloc_val(struct ice_hw *hw, enum ice_block blk, u16 vsig) in ice_vsig_alloc_val() argument
2432 u16 idx = vsig & ICE_VSIG_IDX_M; in ice_vsig_alloc_val()
2478 struct list_head *chs, u16 *vsig) in ice_find_dup_props_vsig() argument
2486 *vsig = ICE_VSIG_VALUE(i, hw->pf_id); in ice_find_dup_props_vsig()
2503 ice_vsig_free(struct ice_hw *hw, enum ice_block blk, u16 vsig) in ice_vsig_free() argument
2509 idx = vsig & ICE_VSIG_IDX_M; in ice_vsig_free()
2527 vsi_cur->vsig = ICE_DEFAULT_VSIG; in ice_vsig_free()
2564 ice_vsig_remove_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig) in ice_vsig_remove_vsi() argument
2569 idx = vsig & ICE_VSIG_IDX_M; in ice_vsig_remove_vsi()
2602 vsi_cur->vsig = ICE_DEFAULT_VSIG; in ice_vsig_remove_vsi()
2622 ice_vsig_add_mv_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig) in ice_vsig_add_mv_vsi() argument
2628 idx = vsig & ICE_VSIG_IDX_M; in ice_vsig_add_mv_vsi()
2637 vsig != ICE_DEFAULT_VSIG) in ice_vsig_add_mv_vsi()
2645 if (orig_vsig == vsig) in ice_vsig_add_mv_vsi()
2659 hw->blk[blk].xlt2.vsis[vsi].vsig = vsig; in ice_vsig_add_mv_vsi()
2667 hw->blk[blk].xlt2.t[vsi] = vsig; in ice_vsig_add_mv_vsi()
3362 u16 vsig; in ice_init_sw_xlt2_db() local
3364 vsig = hw->blk[blk].xlt2.t[vsi]; in ice_init_sw_xlt2_db()
3365 if (vsig) { in ice_init_sw_xlt2_db()
3366 ice_vsig_alloc_val(hw, blk, vsig); in ice_init_sw_xlt2_db()
3367 ice_vsig_add_mv_vsi(hw, blk, vsi, vsig); in ice_init_sw_xlt2_db()
3850 ice_prof_gen_key(struct ice_hw *hw, enum ice_block blk, u8 ptg, u16 vsig, in ice_prof_gen_key() argument
3858 inkey.xlt2_cdid = cpu_to_le16(vsig); in ice_prof_gen_key()
3907 u8 prof_id, u8 ptg, u16 vsig, u8 cdid, u16 flags, in ice_tcam_write_entry() argument
3915 status = ice_prof_gen_key(hw, blk, ptg, vsig, cdid, flags, vl_msk, in ice_tcam_write_entry()
3933 ice_vsig_get_ref(struct ice_hw *hw, enum ice_block blk, u16 vsig, u16 *refs) in ice_vsig_get_ref() argument
3935 u16 idx = vsig & ICE_VSIG_IDX_M; in ice_vsig_get_ref()
3960 ice_has_prof_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl) in ice_has_prof_vsig() argument
3962 u16 idx = vsig & ICE_VSIG_IDX_M; in ice_has_prof_vsig()
3971 vsig); in ice_has_prof_vsig()
4111 p->value[0] = cpu_to_le16(tmp->vsig); in ice_prof_bld_xlt2()
4646 ice_vsig_prof_id_count(struct ice_hw *hw, enum ice_block blk, u16 vsig) in ice_vsig_prof_id_count() argument
4648 u16 idx = vsig & ICE_VSIG_IDX_M, count = 0; in ice_vsig_prof_id_count()
4718 ice_rem_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, in ice_rem_vsig() argument
4721 u16 idx = vsig & ICE_VSIG_IDX_M; in ice_rem_vsig()
4754 p->orig_vsig = vsig; in ice_rem_vsig()
4755 p->vsig = ICE_DEFAULT_VSIG; in ice_rem_vsig()
4763 return ice_vsig_free(hw, blk, vsig); in ice_rem_vsig()
4775 ice_rem_prof_id_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl, in ice_rem_prof_id_vsig() argument
4778 u16 idx = vsig & ICE_VSIG_IDX_M; in ice_rem_prof_id_vsig()
4786 if (ice_vsig_prof_id_count(hw, blk, vsig) == 1) in ice_rem_prof_id_vsig()
4788 return ice_rem_vsig(hw, blk, vsig, chg); in ice_rem_prof_id_vsig()
4940 ice_get_profs_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, in ice_get_profs_vsig() argument
4944 u16 idx = vsig & ICE_VSIG_IDX_M; in ice_get_profs_vsig()
5025 ice_move_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig, in ice_move_vsi() argument
5038 status = ice_vsig_add_mv_vsi(hw, blk, vsi, vsig); in ice_move_vsi()
5048 p->vsig = vsig; in ice_move_vsi()
5086 u16 vsig, struct ice_tcam_inf *tcam, in ice_prof_tcam_ena_dis() argument
5126 tcam->ptg, vsig, 0, tcam->attr.flags, in ice_prof_tcam_ena_dis()
5137 p->vsig = 0; in ice_prof_tcam_ena_dis()
5158 ice_adj_prof_priorities(struct ice_hw *hw, enum ice_block blk, u16 vsig, in ice_adj_prof_priorities() argument
5167 idx = vsig & ICE_VSIG_IDX_M; in ice_adj_prof_priorities()
5193 vsig, in ice_adj_prof_priorities()
5204 vsig, in ice_adj_prof_priorities()
5229 ice_add_prof_id_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl, in ice_add_prof_id_vsig() argument
5243 if (ice_has_prof_vsig(hw, blk, vsig, hdl)) in ice_add_prof_id_vsig()
5296 p->vsig = vsig; in ice_add_prof_id_vsig()
5302 t->tcam[i].ptg, vsig, 0, 0, in ice_add_prof_id_vsig()
5314 vsig_idx = vsig & ICE_VSIG_IDX_M; in ice_add_prof_id_vsig()
5369 p->vsig = new_vsig; in ice_create_prof_id_vsig()
5397 u16 vsig; in ice_create_vsig_from_lst() local
5399 vsig = ice_vsig_alloc(hw, blk); in ice_create_vsig_from_lst()
5400 if (!vsig) in ice_create_vsig_from_lst()
5403 status = ice_move_vsi(hw, blk, vsi, vsig, chg); in ice_create_vsig_from_lst()
5409 status = ice_add_prof_id_vsig(hw, blk, vsig, t->profile_cookie, in ice_create_vsig_from_lst()
5415 *new_vsig = vsig; in ice_create_vsig_from_lst()
5428 ice_find_prof_vsig(struct ice_hw *hw, enum ice_block blk, u64 hdl, u16 *vsig) in ice_find_prof_vsig() argument
5443 status = ice_find_dup_props_vsig(hw, blk, &lst, vsig); in ice_find_prof_vsig()
5470 u16 vsig; in ice_add_prof_id_flow() local
5481 status = ice_vsig_find_vsi(hw, blk, vsi, &vsig); in ice_add_prof_id_flow()
5482 if (!status && vsig) { in ice_add_prof_id_flow()
5488 or_vsig = vsig; in ice_add_prof_id_flow()
5494 if (ice_has_prof_vsig(hw, blk, vsig, hdl)) { in ice_add_prof_id_flow()
5500 status = ice_vsig_get_ref(hw, blk, vsig, &ref); in ice_add_prof_id_flow()
5508 status = ice_get_profs_vsig(hw, blk, vsig, &union_lst); in ice_add_prof_id_flow()
5517 status = ice_find_dup_props_vsig(hw, blk, &union_lst, &vsig); in ice_add_prof_id_flow()
5520 status = ice_move_vsi(hw, blk, vsi, vsig, &chg); in ice_add_prof_id_flow()
5538 status = ice_add_prof_id_vsig(hw, blk, vsig, hdl, false, in ice_add_prof_id_flow()
5544 status = ice_adj_prof_priorities(hw, blk, vsig, &chg); in ice_add_prof_id_flow()
5550 &union_lst, &vsig, in ice_add_prof_id_flow()
5556 status = ice_adj_prof_priorities(hw, blk, vsig, &chg); in ice_add_prof_id_flow()
5563 if (ice_find_prof_vsig(hw, blk, hdl, &vsig)) { in ice_add_prof_id_flow()
5566 status = ice_move_vsi(hw, blk, vsi, vsig, &chg); in ice_add_prof_id_flow()
5636 u16 vsig; in ice_rem_prof_id_flow() local
5642 status = ice_vsig_find_vsi(hw, blk, vsi, &vsig); in ice_rem_prof_id_flow()
5643 if (!status && vsig) { in ice_rem_prof_id_flow()
5649 last_profile = ice_vsig_prof_id_count(hw, blk, vsig) == 1; in ice_rem_prof_id_flow()
5650 status = ice_vsig_get_ref(hw, blk, vsig, &ref); in ice_rem_prof_id_flow()
5666 status = ice_rem_vsig(hw, blk, vsig, &chg); in ice_rem_prof_id_flow()
5670 status = ice_rem_prof_id_vsig(hw, blk, vsig, in ice_rem_prof_id_flow()
5676 status = ice_adj_prof_priorities(hw, blk, vsig, in ice_rem_prof_id_flow()
5684 status = ice_get_profs_vsig(hw, blk, vsig, ©); in ice_rem_prof_id_flow()
5700 &vsig)) { in ice_rem_prof_id_flow()
5708 status = ice_move_vsi(hw, blk, vsi, vsig, &chg); in ice_rem_prof_id_flow()
5717 ©, &vsig, in ice_rem_prof_id_flow()
5723 status = ice_adj_prof_priorities(hw, blk, vsig, in ice_rem_prof_id_flow()