Lines Matching full:blk

612 	enum ice_block blk;
927 u8 fv_words = hw->blk[params->blk].es.fvw;
1099 if (hw->blk[params->blk].es.reverse)
1142 fv_words = hw->blk[params->blk].es.fvw;
1171 if (params->es_cnt >= hw->blk[params->blk].es.count ||
1176 if (hw->blk[params->blk].es.reverse)
1246 switch (params->blk) {
1266 * @blk: classification stage
1275 ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk,
1281 mutex_lock(&hw->fl_profs_locks[blk]);
1282 list_for_each_entry(p, &hw->fl_profs[blk], l_entry)
1313 mutex_unlock(&hw->fl_profs_locks[blk]);
1321 * @blk: classification stage
1325 ice_flow_find_prof_id(struct ice_hw *hw, enum ice_block blk, u64 prof_id)
1329 list_for_each_entry(p, &hw->fl_profs[blk], l_entry)
1339 * @blk: classification stage
1343 ice_flow_rem_entry_sync(struct ice_hw *hw, enum ice_block __always_unused blk,
1359 * @blk: classification stage
1369 ice_flow_add_prof_sync(struct ice_hw *hw, enum ice_block blk,
1383 ids = &hw->blk[blk].prof_id;
1405 params->blk = blk;
1424 status = ice_add_prof(hw, blk, prof_id, params->ptypes,
1449 * @blk: classification stage
1455 ice_flow_rem_prof_sync(struct ice_hw *hw, enum ice_block blk,
1467 status = ice_flow_rem_entry_sync(hw, blk, e);
1476 status = ice_rem_prof(hw, blk, prof->id);
1478 clear_bit(prof->id, hw->blk[blk].prof_id.id);
1490 * @blk: classification stage
1498 ice_flow_assoc_prof(struct ice_hw *hw, enum ice_block blk,
1504 status = ice_add_prof_id_flow(hw, blk,
1521 * @blk: classification stage
1529 ice_flow_disassoc_prof(struct ice_hw *hw, enum ice_block blk,
1535 status = ice_rem_prof_id_flow(hw, blk,
1567 * @blk: classification blk
1573 struct ice_parser_profile *prof, enum ice_block blk)
1577 u8 fv_words = hw->blk[blk].es.fvw;
1591 if (hw->blk[blk].es.reverse)
1620 status = ice_add_prof(hw, blk, id, prof->ptypes,
1626 status = ice_flow_assoc_fdir_prof(hw, blk, dest_vsi, fdir_vsi, id);
1628 ice_rem_prof(hw, blk, id);
1636 * @blk: classification stage
1644 ice_flow_add_prof(struct ice_hw *hw, enum ice_block blk, enum ice_flow_dir dir,
1663 mutex_lock(&hw->fl_profs_locks[blk]);
1665 status = ice_flow_add_prof_sync(hw, blk, dir, segs, segs_cnt,
1668 list_add(&(*prof)->l_entry, &hw->fl_profs[blk]);
1670 mutex_unlock(&hw->fl_profs_locks[blk]);
1678 * @blk: the block for which the flow profile is to be removed
1681 int ice_flow_rem_prof(struct ice_hw *hw, enum ice_block blk, u64 prof_id)
1686 mutex_lock(&hw->fl_profs_locks[blk]);
1688 prof = ice_flow_find_prof_id(hw, blk, prof_id);
1695 status = ice_flow_rem_prof_sync(hw, blk, prof);
1698 mutex_unlock(&hw->fl_profs_locks[blk]);
1706 * @blk: classification stage
1715 ice_flow_add_entry(struct ice_hw *hw, enum ice_block blk, u64 prof_id,
1724 if (!entry_h || (!data && blk != ICE_BLK_RSS))
1730 mutex_lock(&hw->fl_profs_locks[blk]);
1732 prof = ice_flow_find_prof_id(hw, blk, prof_id);
1743 status = ice_flow_assoc_prof(hw, blk, prof, vsi_handle);
1746 mutex_unlock(&hw->fl_profs_locks[blk]);
1755 switch (blk) {
1780 * @blk: classification stage
1783 int ice_flow_rem_entry(struct ice_hw *hw, enum ice_block blk, u64 entry_h)
1799 status = ice_flow_rem_entry_sync(hw, blk, entry);
2066 const enum ice_block blk = ICE_BLK_RSS;
2073 if (list_empty(&hw->fl_profs[blk]))
2077 list_for_each_entry_safe(p, t, &hw->fl_profs[blk], l_entry)
2079 status = ice_flow_disassoc_prof(hw, blk, p, vsi_handle);
2084 status = ice_flow_rem_prof(hw, blk, p->id);
2262 mutex_lock(&hw->blk[ICE_BLK_RSS].es.prof_map_lock);
2266 mutex_unlock(&hw->blk[ICE_BLK_RSS].es.prof_map_lock);
2339 const enum ice_block blk = ICE_BLK_RSS;
2361 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
2374 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
2378 status = ice_flow_disassoc_prof(hw, blk, prof, vsi_handle);
2386 status = ice_flow_rem_prof(hw, blk, prof->id);
2395 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
2400 status = ice_flow_assoc_prof(hw, blk, prof, vsi_handle);
2407 status = ice_flow_add_prof(hw, blk, ICE_FLOW_RX,
2414 status = ice_flow_assoc_prof(hw, blk, prof, vsi_handle);
2419 ice_flow_rem_prof(hw, blk, prof->id);
2487 const enum ice_block blk = ICE_BLK_RSS;
2504 prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
2512 status = ice_flow_disassoc_prof(hw, blk, prof, vsi_handle);
2522 status = ice_flow_rem_prof(hw, blk, prof->id);