Lines Matching defs:prof
694 * ice_find_prot_off - find prot ID and offset pair, based on prof and FV index
697 * @prof: profile ID
703 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx,
708 if (prof >= hw->blk[blk].es.count)
714 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw);
1741 sizeof(*hw->blk[block_id].prof.t);
1742 dst = (u8 *)hw->blk[block_id].prof.t;
1743 dst_len = hw->blk[block_id].prof.count *
1744 sizeof(*hw->blk[block_id].prof.t);
1822 struct ice_prof_tcam *prof = &hw->blk[i].prof;
1879 prof->sid = ice_blk_sids[i][ICE_SID_PR_OFF];
1880 prof->count = blk_sizes[i].prof_tcam;
1881 prof->max_prof_id = blk_sizes[i].prof_id;
1882 prof->cdid_bits = blk_sizes[i].prof_cdid_bits;
1883 prof->t = (struct ice_prof_tcam_entry *)
1884 ice_calloc(hw, prof->count, sizeof(*prof->t));
1886 if (!prof->t)
1943 ice_fill_tbl(hw, blk_id, hw->blk[blk_id].prof.sid);
2040 ice_free(hw, hw->blk[i].prof.t);
2066 struct ice_prof_tcam *prof = &hw->blk[i].prof;
2106 if (prof->t)
2107 ice_memset(prof->t, 0, prof->count * sizeof(*prof->t),
2158 switch (hw->blk[blk].prof.cdid_bits) {
2213 dc_msk, nm_msk, hw->blk[blk].prof.t[idx].key);
2215 hw->blk[blk].prof.t[idx].addr = CPU_TO_LE16(idx);
2216 hw->blk[blk].prof.t[idx].prof_id = prof_id;
2346 &hw->blk[blk].prof.t[tmp->tcam_idx].key,
2347 sizeof(hw->blk[blk].prof.t->key),
2549 struct ice_prof_map *prof;
2574 prof = (struct ice_prof_map *)ice_malloc(hw, sizeof(*prof));
2575 if (!prof)
2578 prof->profile_cookie = id;
2579 prof->prof_id = prof_id;
2580 prof->ptg_cnt = 0;
2581 prof->context = 0;
2598 prof->ptg[prof->ptg_cnt] = ptg;
2600 if (++prof->ptg_cnt >= ICE_MAX_PTG_PER_PROFILE)
2604 LIST_ADD(&prof->list, &hw->blk[blk].es.prof_map);
2732 * @prof: pointer to profile structure to remove
2736 struct ice_vsig_prof *prof)
2741 for (i = 0; i < prof->tcam_count; i++)
2742 if (prof->tcam[i].in_use) {
2743 prof->tcam[i].in_use = false;
2745 prof->tcam[i].tcam_idx);