Lines Matching refs:blk
393 enum ice_block blk;
565 u8 fv_words = (u8)hw->blk[params->blk].es.fvw;
693 if (hw->blk[params->blk].es.reverse)
759 switch (params->blk) {
777 * @blk: classification stage
785 ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk,
791 ice_acquire_lock(&hw->fl_profs_locks[blk]);
792 LIST_FOR_EACH_ENTRY(p, &hw->fl_profs[blk], ice_flow_prof, l_entry)
821 ice_release_lock(&hw->fl_profs_locks[blk]);
829 * @blk: classification stage
835 ice_flow_find_prof(struct ice_hw *hw, enum ice_block blk, enum ice_flow_dir dir,
840 p = ice_flow_find_prof_conds(hw, blk, dir, segs, segs_cnt,
849 * @blk: classification stage
853 ice_flow_find_prof_id(struct ice_hw *hw, enum ice_block blk, u64 prof_id)
857 LIST_FOR_EACH_ENTRY(p, &hw->fl_profs[blk], ice_flow_prof, l_entry)
867 * @blk: classification stage
872 ice_flow_get_hw_prof(struct ice_hw *hw, enum ice_block blk, u64 prof_id,
878 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock);
879 map = ice_search_prof_id(hw, blk, prof_id);
884 ice_release_lock(&hw->blk[blk].es.prof_map_lock);
891 * @blk: classification stage
903 ice_flow_add_prof_sync(struct ice_hw *hw, enum ice_block blk,
933 params->blk = blk;
952 status = ice_add_prof(hw, blk, prof_id, params->ptypes, params->es);
973 * @blk: classification stage
979 ice_flow_rem_prof_sync(struct ice_hw *hw, enum ice_block blk,
985 status = ice_rem_prof(hw, blk, prof->id);
997 * @blk: classification stage
1006 ice_flow_assoc_vsig_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi_handle,
1011 if (!ice_is_vsi_valid(hw, vsi_handle) || blk >= ICE_BLK_COUNT)
1014 ice_acquire_lock(&hw->fl_profs_locks[blk]);
1015 status = ice_add_vsi_flow(hw, blk, ice_get_hw_vsi_num(hw, vsi_handle),
1017 ice_release_lock(&hw->fl_profs_locks[blk]);
1025 * @blk: classification stage
1033 ice_flow_assoc_prof(struct ice_hw *hw, enum ice_block blk,
1039 status = ice_add_prof_id_flow(hw, blk,
1056 * @blk: classification stage
1064 ice_flow_disassoc_prof(struct ice_hw *hw, enum ice_block blk,
1070 status = ice_rem_prof_id_flow(hw, blk,
1087 * @blk: classification stage
1097 ice_flow_add_prof(struct ice_hw *hw, enum ice_block blk, enum ice_flow_dir dir,
1117 ice_acquire_lock(&hw->fl_profs_locks[blk]);
1119 status = ice_flow_add_prof_sync(hw, blk, dir, prof_id, segs, segs_cnt,
1122 LIST_ADD(&(*prof)->l_entry, &hw->fl_profs[blk]);
1124 ice_release_lock(&hw->fl_profs_locks[blk]);
1132 * @blk: the block for which the flow profile is to be removed
1136 ice_flow_rem_prof(struct ice_hw *hw, enum ice_block blk, u64 prof_id)
1141 ice_acquire_lock(&hw->fl_profs_locks[blk]);
1143 prof = ice_flow_find_prof_id(hw, blk, prof_id);
1150 status = ice_flow_rem_prof_sync(hw, blk, prof);
1153 ice_release_lock(&hw->fl_profs_locks[blk]);
1364 const enum ice_block blk = ICE_BLK_RSS;
1372 if (LIST_EMPTY(&hw->fl_profs[blk]))
1376 LIST_FOR_EACH_ENTRY_SAFE(p, t, &hw->fl_profs[blk], ice_flow_prof,
1381 ret = ice_vsig_find_vsi(hw, blk,
1388 status = ice_flow_disassoc_prof(hw, blk, p, vsi_handle);
1393 status = ice_flow_rem_prof(hw, blk, p->id);
1551 const enum ice_block blk = ICE_BLK_RSS;
1578 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
1590 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
1593 status = ice_flow_disassoc_prof(hw, blk, prof, vsi_handle);
1601 status = ice_flow_rem_prof(hw, blk, prof->id);
1610 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
1614 status = ice_flow_assoc_prof(hw, blk, prof, vsi_handle);
1623 status = ice_flow_add_prof(hw, blk, ICE_FLOW_RX,
1631 status = ice_flow_assoc_prof(hw, blk, prof, vsi_handle);
1636 ice_flow_rem_prof(hw, blk, prof->id);
1701 const enum ice_block blk = ICE_BLK_RSS;
1720 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
1728 status = ice_flow_disassoc_prof(hw, blk, prof, vsi_handle);
1738 status = ice_flow_rem_prof(hw, blk, prof->id);