Lines Matching refs:prof

630 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx,  in ice_find_prot_off()  argument
635 if (prof >= hw->blk[blk].es.count) in ice_find_prot_off()
641 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off()
1160 ice_prof_has_mask_idx(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 idx, in ice_prof_has_mask_idx() argument
1175 if (hw->blk[blk].es.mask_ena[prof] & BIT(i)) in ice_prof_has_mask_idx()
1203 ice_prof_has_mask(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 *masks) in ice_prof_has_mask() argument
1209 if (!ice_prof_has_mask_idx(hw, blk, prof, i, masks[i])) in ice_prof_has_mask()
1948 sizeof(*hw->blk[block_id].prof.t); in ice_fill_tbl()
1949 dst = (u8 *)hw->blk[block_id].prof.t; in ice_fill_tbl()
1950 dst_len = hw->blk[block_id].prof.count * in ice_fill_tbl()
1951 sizeof(*hw->blk[block_id].prof.t); in ice_fill_tbl()
2022 ice_fill_tbl(hw, blk_id, hw->blk[blk_id].prof.sid); in ice_fill_blk_tbls()
2124 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].prof.t); in ice_free_hw_tbls()
2165 struct ice_prof_tcam *prof = &hw->blk[i].prof; in ice_clear_hw_tbls() local
2187 memset(prof->t, 0, prof->count * sizeof(*prof->t)); in ice_clear_hw_tbls()
2215 struct ice_prof_tcam *prof = &hw->blk[i].prof; in ice_init_hw_tbls() local
2276 prof->sid = ice_blk_sids[i][ICE_SID_PR_OFF]; in ice_init_hw_tbls()
2277 prof->count = blk_sizes[i].prof_tcam; in ice_init_hw_tbls()
2278 prof->max_prof_id = blk_sizes[i].prof_id; in ice_init_hw_tbls()
2279 prof->cdid_bits = blk_sizes[i].prof_cdid_bits; in ice_init_hw_tbls()
2280 prof->t = devm_kcalloc(ice_hw_to_dev(hw), prof->count, in ice_init_hw_tbls()
2281 sizeof(*prof->t), GFP_KERNEL); in ice_init_hw_tbls()
2283 if (!prof->t) in ice_init_hw_tbls()
2364 switch (hw->blk[blk].prof.cdid_bits) { in ice_prof_gen_key()
2419 dc_msk, nm_msk, hw->blk[blk].prof.t[idx].key); in ice_tcam_write_entry()
2421 hw->blk[blk].prof.t[idx].addr = cpu_to_le16(idx); in ice_tcam_write_entry()
2422 hw->blk[blk].prof.t[idx].prof_id = prof_id; in ice_tcam_write_entry()
2546 &hw->blk[blk].prof.t[tmp->tcam_idx].key, in ice_prof_bld_tcam()
2547 sizeof(hw->blk[blk].prof.t->key)); in ice_prof_bld_tcam()
2959 ice_add_prof_attrib(struct ice_prof_map *prof, u8 ptg, u16 ptype, in ice_add_prof_attrib() argument
2969 prof->ptg[prof->ptg_cnt] = ptg; in ice_add_prof_attrib()
2971 &prof->attr[prof->ptg_cnt]); in ice_add_prof_attrib()
2973 if (++prof->ptg_cnt >= ICE_MAX_PTG_PER_PROFILE) in ice_add_prof_attrib()
3052 struct ice_prof_map *prof; in ice_add_prof() local
3093 prof = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*prof), GFP_KERNEL); in ice_add_prof()
3094 if (!prof) { in ice_add_prof()
3099 prof->profile_cookie = id; in ice_add_prof()
3100 prof->prof_id = prof_id; in ice_add_prof()
3101 prof->ptg_cnt = 0; in ice_add_prof()
3102 prof->context = 0; in ice_add_prof()
3122 status = ice_add_prof_attrib(prof, ptg, ptype, attr, attr_cnt); in ice_add_prof()
3127 prof->ptg[prof->ptg_cnt] = ptg; in ice_add_prof()
3128 prof->attr[prof->ptg_cnt].flags = 0; in ice_add_prof()
3129 prof->attr[prof->ptg_cnt].mask = 0; in ice_add_prof()
3131 if (++prof->ptg_cnt >= ICE_MAX_PTG_PER_PROFILE) in ice_add_prof()
3136 list_add(&prof->list, &hw->blk[blk].es.prof_map); in ice_add_prof()
3221 struct ice_vsig_prof *prof) in ice_rem_prof_id() argument
3226 for (i = 0; i < prof->tcam_count; i++) in ice_rem_prof_id()
3227 if (prof->tcam[i].in_use) { in ice_rem_prof_id()
3228 prof->tcam[i].in_use = false; in ice_rem_prof_id()
3230 prof->tcam[i].tcam_idx); in ice_rem_prof_id()