Lines Matching refs:prof

621  * ice_find_prot_off - find prot ID and offset pair, based on prof and FV index
624 * @prof: profile ID
630 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx,
635 if (prof >= hw->blk[blk].es.count)
641 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw);
1155 * @prof: profile to check
1160 ice_prof_has_mask_idx(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 idx,
1175 if (hw->blk[blk].es.mask_ena[prof] & BIT(i))
1199 * @prof: profile to check
1203 ice_prof_has_mask(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 *masks)
1207 /* es->mask_ena[prof] will have the mask */
1209 if (!ice_prof_has_mask_idx(hw, blk, prof, i, masks[i]))
1468 * ice_init_prof_masks - initial prof masks
1492 * ice_init_all_prof_masks - initialize all prof masks
1948 sizeof(*hw->blk[block_id].prof.t);
1949 dst = (u8 *)hw->blk[block_id].prof.t;
1950 dst_len = hw->blk[block_id].prof.count *
1951 sizeof(*hw->blk[block_id].prof.t);
2022 ice_fill_tbl(hw, blk_id, hw->blk[blk_id].prof.sid);
2124 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].prof.t);
2165 struct ice_prof_tcam *prof = &hw->blk[i].prof;
2187 memset(prof->t, 0, prof->count * sizeof(*prof->t));
2215 struct ice_prof_tcam *prof = &hw->blk[i].prof;
2276 prof->sid = ice_blk_sids[i][ICE_SID_PR_OFF];
2277 prof->count = blk_sizes[i].prof_tcam;
2278 prof->max_prof_id = blk_sizes[i].prof_id;
2279 prof->cdid_bits = blk_sizes[i].prof_cdid_bits;
2280 prof->t = devm_kcalloc(ice_hw_to_dev(hw), prof->count,
2281 sizeof(*prof->t), GFP_KERNEL);
2283 if (!prof->t)
2364 switch (hw->blk[blk].prof.cdid_bits) {
2419 dc_msk, nm_msk, hw->blk[blk].prof.t[idx].key);
2421 hw->blk[blk].prof.t[idx].addr = cpu_to_le16(idx);
2422 hw->blk[blk].prof.t[idx].prof_id = prof_id;
2546 &hw->blk[blk].prof.t[tmp->tcam_idx].key,
2547 sizeof(hw->blk[blk].prof.t->key));
2952 * @prof: pointer to the profile to which PTG entries will be added
2959 ice_add_prof_attrib(struct ice_prof_map *prof, u8 ptg, u16 ptype,
2969 prof->ptg[prof->ptg_cnt] = ptg;
2971 &prof->attr[prof->ptg_cnt]);
2973 if (++prof->ptg_cnt >= ICE_MAX_PTG_PER_PROFILE)
3007 struct ice_prof_map *prof;
3046 prof = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*prof), GFP_KERNEL);
3047 if (!prof) {
3052 prof->profile_cookie = id;
3053 prof->prof_id = prof_id;
3054 prof->ptg_cnt = 0;
3055 prof->context = 0;
3058 while (bytes && prof->ptg_cnt < ICE_MAX_PTG_PER_PROFILE) {
3089 status = ice_add_prof_attrib(prof, ptg, ptype,
3097 prof->ptg[prof->ptg_cnt] = ptg;
3098 prof->attr[prof->ptg_cnt].flags = 0;
3099 prof->attr[prof->ptg_cnt].mask = 0;
3101 if (++prof->ptg_cnt >=
3111 list_add(&prof->list, &hw->blk[blk].es.prof_map);
3192 * @prof: pointer to profile structure to remove
3196 struct ice_vsig_prof *prof)
3201 for (i = 0; i < prof->tcam_count; i++)
3202 if (prof->tcam[i].in_use) {
3203 prof->tcam[i].in_use = false;
3205 prof->tcam[i].tcam_idx);