Lines Matching defs:vsig
1014 * @vsig: VSIG for the VSI
1021 u16 vsig)
1035 sect->value[0] = CPU_TO_LE16(vsig);
1060 u16 vsig;
1062 vsig = hw->blk[blk].xlt2.vsis[vsi].vsig;
1063 status = ice_vsig_update_xlt2_sect(hw, blk, vsi, vsig);
1079 * @vsig: pointer to receive the VSI group
1085 ice_vsig_find_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 *vsig)
1087 if (!vsig || vsi >= ICE_MAX_VSI)
1094 *vsig = hw->blk[blk].xlt2.vsis[vsi].vsig;
1103 * @vsig: the VSIG to allocate
1107 static u16 ice_vsig_alloc_val(struct ice_hw *hw, enum ice_block blk, u16 vsig)
1109 u16 idx = vsig & ICE_VSIG_IDX_M;
1143 * @vsig: returns the VSIG with the matching profiles, if found
1155 struct LIST_HEAD_TYPE *chs, u16 *vsig)
1163 *vsig = ICE_VSIG_VALUE(i, hw->pf_id);
1174 * @vsig: VSIG to remove
1180 ice_vsig_free(struct ice_hw *hw, enum ice_block blk, u16 vsig)
1186 idx = vsig & ICE_VSIG_IDX_M;
1204 vsi_cur->vsig = ICE_DEFAULT_VSIG;
1235 * @vsig: VSI group to remove from
1241 ice_vsig_remove_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig)
1246 idx = vsig & ICE_VSIG_IDX_M;
1279 vsi_cur->vsig = ICE_DEFAULT_VSIG;
1291 * @vsig: destination VSI group
1299 ice_vsig_add_mv_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig)
1305 idx = vsig & ICE_VSIG_IDX_M;
1314 vsig != ICE_DEFAULT_VSIG)
1322 if (orig_vsig == vsig)
1336 hw->blk[blk].xlt2.vsis[vsi].vsig = vsig;
1344 hw->blk[blk].xlt2.t[vsi] = vsig;
1640 u16 vsig;
1642 vsig = hw->blk[blk].xlt2.t[vsi];
1643 if (vsig) {
1644 ice_vsig_alloc_val(hw, blk, vsig);
1645 ice_vsig_add_mv_vsi(hw, blk, vsi, vsig);
2138 * @vsig: VSIG portion of key
2147 ice_prof_gen_key(struct ice_hw *hw, enum ice_block blk, u8 ptg, u16 vsig,
2155 inkey.xlt2_cdid = CPU_TO_LE16(vsig);
2195 * @vsig: VSIG portion of key
2204 u8 prof_id, u8 ptg, u16 vsig, u8 cdid, u16 flags,
2212 status = ice_prof_gen_key(hw, blk, ptg, vsig, cdid, flags, vl_msk,
2226 * @vsig: VSIG to query
2230 ice_vsig_get_ref(struct ice_hw *hw, enum ice_block blk, u16 vsig, u16 *refs)
2232 u16 idx = vsig & ICE_VSIG_IDX_M;
2253 * @vsig: VSIG to check against
2257 ice_has_prof_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl)
2259 u16 idx = vsig & ICE_VSIG_IDX_M;
2268 vsig);
2421 p->value[0] = CPU_TO_LE16(tmp->vsig);
2686 * @vsig: VSIG to remove the profile from
2689 ice_vsig_prof_id_count(struct ice_hw *hw, enum ice_block blk, u16 vsig)
2691 u16 idx = vsig & ICE_VSIG_IDX_M, count = 0;
2757 * @vsig: the VSIG to remove
2761 ice_rem_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig,
2764 u16 idx = vsig & ICE_VSIG_IDX_M;
2797 p->orig_vsig = vsig;
2798 p->vsig = ICE_DEFAULT_VSIG;
2806 return ice_vsig_free(hw, blk, vsig);
2813 * @vsig: VSIG to remove the profile from
2818 ice_rem_prof_id_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl,
2821 u16 idx = vsig & ICE_VSIG_IDX_M;
2830 if (ice_vsig_prof_id_count(hw, blk, vsig) == 1)
2832 return ice_rem_vsig(hw, blk, vsig, chg);
2977 * @vsig: VSIG from which to copy the list
2983 ice_get_profs_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig,
2987 u16 idx = vsig & ICE_VSIG_IDX_M;
3064 * @vsig: the VSIG to move the VSI to
3068 ice_move_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig,
3081 status = ice_vsig_add_mv_vsi(hw, blk, vsi, vsig);
3091 p->vsig = vsig;
3121 * @vsig: the VSIG of the TCAM entry
3129 u16 vsig, struct ice_tcam_inf *tcam,
3164 tcam->ptg, vsig, 0, 0, vl_msk, dc_msk,
3175 p->vsig = 0;
3192 * @vsig: the VSIG for which to adjust profile priorities
3196 ice_adj_prof_priorities(struct ice_hw *hw, enum ice_block blk, u16 vsig,
3205 idx = vsig & ICE_VSIG_IDX_M;
3234 vsig,
3244 vsig,
3263 * @vsig: the VSIG to which this profile is to be added
3269 ice_add_prof_id_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl,
3283 if (ice_has_prof_vsig(hw, blk, vsig, hdl))
3330 p->vsig = vsig;
3336 t->tcam[i].ptg, vsig, 0, 0,
3348 vsig_idx = vsig & ICE_VSIG_IDX_M;
3403 p->vsig = new_vsig;
3431 u16 vsig;
3433 vsig = ice_vsig_alloc(hw, blk);
3434 if (!vsig)
3437 status = ice_move_vsi(hw, blk, vsi, vsig, chg);
3443 status = ice_add_prof_id_vsig(hw, blk, vsig, t->profile_cookie,
3449 *new_vsig = vsig;
3459 * @vsig: returns the VSIG with the matching profile
3462 ice_find_prof_vsig(struct ice_hw *hw, enum ice_block blk, u64 hdl, u16 *vsig)
3477 status = ice_find_dup_props_vsig(hw, blk, &lst, vsig);
3490 * @vsig: target VSIG to include the input VSI
3500 ice_add_vsi_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig)
3507 if ((vsig & ICE_VSIG_IDX_M) == ICE_DEFAULT_VSIG)
3513 status = ice_move_vsi(hw, blk, vsi, vsig, &chg);
3545 u16 vsig;
3556 status = ice_vsig_find_vsi(hw, blk, vsi, &vsig);
3557 if (!status && vsig) {
3563 or_vsig = vsig;
3569 if (ice_has_prof_vsig(hw, blk, vsig, hdl)) {
3575 status = ice_vsig_get_ref(hw, blk, vsig, &ref);
3583 status = ice_get_profs_vsig(hw, blk, vsig, &union_lst);
3592 status = ice_find_dup_props_vsig(hw, blk, &union_lst, &vsig);
3595 status = ice_move_vsi(hw, blk, vsi, vsig, &chg);
3613 status = ice_add_prof_id_vsig(hw, blk, vsig, hdl, false,
3619 status = ice_adj_prof_priorities(hw, blk, vsig, &chg);
3625 &union_lst, &vsig,
3631 status = ice_adj_prof_priorities(hw, blk, vsig, &chg);
3638 if (ice_find_prof_vsig(hw, blk, hdl, &vsig)) {
3641 status = ice_move_vsi(hw, blk, vsi, vsig, &chg);
3740 u16 vsig;
3746 status = ice_vsig_find_vsi(hw, blk, vsi, &vsig);
3747 if (!status && vsig) {
3753 last_profile = ice_vsig_prof_id_count(hw, blk, vsig) == 1;
3754 status = ice_vsig_get_ref(hw, blk, vsig, &ref);
3770 status = ice_rem_vsig(hw, blk, vsig, &chg);
3774 status = ice_rem_prof_id_vsig(hw, blk, vsig,
3780 status = ice_adj_prof_priorities(hw, blk, vsig,
3788 status = ice_get_profs_vsig(hw, blk, vsig, ©);
3804 &vsig)) {
3812 status = ice_move_vsi(hw, blk, vsi, vsig, &chg);
3821 ©, &vsig,
3827 status = ice_adj_prof_priorities(hw, blk, vsig,