Lines Matching refs:t
641 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off()
778 hw->blk[blk].xlt1.t[ptype] = ptg; in ice_ptg_add_mv_ptype()
1146 hw->blk[blk].xlt2.t[vsi] = vsig; in ice_vsig_add_mv_vsi()
1239 if (memcmp(&es->t[off], fv, es->fvw * sizeof(*fv))) in ice_find_prof_id_with_mask()
1733 memset(&hw->blk[blk].es.t[off], 0, in ice_write_es()
1737 memcpy(&hw->blk[blk].es.t[off], fv, in ice_write_es()
1820 ptg = hw->blk[blk].xlt1.t[pt]; in ice_init_sw_xlt1_db()
1840 vsig = hw->blk[blk].xlt2.t[vsi]; in ice_init_sw_xlt2_db()
1913 sizeof(*hw->blk[block_id].xlt1.t); in ice_fill_tbl()
1914 dst = hw->blk[block_id].xlt1.t; in ice_fill_tbl()
1916 sizeof(*hw->blk[block_id].xlt1.t); in ice_fill_tbl()
1926 sizeof(*hw->blk[block_id].xlt2.t); in ice_fill_tbl()
1927 dst = (u8 *)hw->blk[block_id].xlt2.t; in ice_fill_tbl()
1929 sizeof(*hw->blk[block_id].xlt2.t); in ice_fill_tbl()
1939 sizeof(*hw->blk[block_id].prof.t); in ice_fill_tbl()
1940 dst = (u8 *)hw->blk[block_id].prof.t; in ice_fill_tbl()
1942 sizeof(*hw->blk[block_id].prof.t); in ice_fill_tbl()
1952 sizeof(*hw->blk[block_id].prof_redir.t); in ice_fill_tbl()
1953 dst = hw->blk[block_id].prof_redir.t; in ice_fill_tbl()
1955 sizeof(*hw->blk[block_id].prof_redir.t); in ice_fill_tbl()
1966 sizeof(*hw->blk[block_id].es.t); in ice_fill_tbl()
1967 dst = (u8 *)hw->blk[block_id].es.t; in ice_fill_tbl()
1970 sizeof(*hw->blk[block_id].es.t); in ice_fill_tbl()
2051 struct ice_flow_entry *e, *t; in ice_free_flow_profs() local
2053 list_for_each_entry_safe(e, t, &p->entries, l_entry) in ice_free_flow_profs()
2111 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.t); in ice_free_hw_tbls()
2112 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt2.t); in ice_free_hw_tbls()
2115 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].prof.t); in ice_free_hw_tbls()
2116 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].prof_redir.t); in ice_free_hw_tbls()
2117 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].es.t); in ice_free_hw_tbls()
2168 memset(xlt1->t, 0, xlt1->count * sizeof(*xlt1->t)); in ice_clear_hw_tbls()
2173 memset(xlt2->t, 0, xlt2->count * sizeof(*xlt2->t)); in ice_clear_hw_tbls()
2175 memset(prof->t, 0, prof->count * sizeof(*prof->t)); in ice_clear_hw_tbls()
2176 memset(prof_redir->t, 0, in ice_clear_hw_tbls()
2177 prof_redir->count * sizeof(*prof_redir->t)); in ice_clear_hw_tbls()
2179 memset(es->t, 0, es->count * sizeof(*es->t) * es->fvw); in ice_clear_hw_tbls()
2232 xlt1->t = devm_kcalloc(ice_hw_to_dev(hw), xlt1->count, in ice_init_hw_tbls()
2233 sizeof(*xlt1->t), GFP_KERNEL); in ice_init_hw_tbls()
2234 if (!xlt1->t) in ice_init_hw_tbls()
2255 xlt2->t = devm_kcalloc(ice_hw_to_dev(hw), xlt2->count, in ice_init_hw_tbls()
2256 sizeof(*xlt2->t), GFP_KERNEL); in ice_init_hw_tbls()
2257 if (!xlt2->t) in ice_init_hw_tbls()
2264 prof->t = devm_kcalloc(ice_hw_to_dev(hw), prof->count, in ice_init_hw_tbls()
2265 sizeof(*prof->t), GFP_KERNEL); in ice_init_hw_tbls()
2267 if (!prof->t) in ice_init_hw_tbls()
2272 prof_redir->t = devm_kcalloc(ice_hw_to_dev(hw), in ice_init_hw_tbls()
2274 sizeof(*prof_redir->t), in ice_init_hw_tbls()
2277 if (!prof_redir->t) in ice_init_hw_tbls()
2283 es->t = devm_kcalloc(ice_hw_to_dev(hw), in ice_init_hw_tbls()
2285 sizeof(*es->t), GFP_KERNEL); in ice_init_hw_tbls()
2286 if (!es->t) in ice_init_hw_tbls()
2392 dc_msk, nm_msk, hw->blk[blk].prof.t[idx].key); in ice_tcam_write_entry()
2394 hw->blk[blk].prof.t[idx].addr = cpu_to_le16(idx); in ice_tcam_write_entry()
2395 hw->blk[blk].prof.t[idx].prof_id = prof_id; in ice_tcam_write_entry()
2483 memcpy(p->es, &hw->blk[blk].es.t[off], vec_size); in ice_prof_bld_es()
2519 &hw->blk[blk].prof.t[tmp->tcam_idx].key, in ice_prof_bld_tcam()
2520 sizeof(hw->blk[blk].prof.t->key)); in ice_prof_bld_tcam()
3198 struct ice_vsig_prof *d, *t; in ice_rem_vsig() local
3201 list_for_each_entry_safe(d, t, in ice_rem_vsig()
3255 struct ice_vsig_prof *p, *t; in ice_rem_prof_id_vsig() local
3257 list_for_each_entry_safe(p, t, in ice_rem_prof_id_vsig()
3638 struct ice_vsig_prof *t; in ice_adj_prof_priorities() local
3654 list_for_each_entry(t, &hw->blk[blk].xlt2.vsig_tbl[idx].prop_lst, in ice_adj_prof_priorities()
3658 for (i = 0; i < t->tcam_count; i++) { in ice_adj_prof_priorities()
3662 if (test_bit(t->tcam[i].ptg, ptgs_used) && in ice_adj_prof_priorities()
3663 t->tcam[i].in_use) { in ice_adj_prof_priorities()
3670 &t->tcam[i], in ice_adj_prof_priorities()
3674 } else if (!test_bit(t->tcam[i].ptg, ptgs_used) && in ice_adj_prof_priorities()
3675 !t->tcam[i].in_use) { in ice_adj_prof_priorities()
3681 &t->tcam[i], in ice_adj_prof_priorities()
3688 __set_bit(t->tcam[i].ptg, ptgs_used); in ice_adj_prof_priorities()
3713 struct ice_vsig_prof *t; in ice_add_prof_id_vsig() local
3723 t = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*t), GFP_KERNEL); in ice_add_prof_id_vsig()
3724 if (!t) in ice_add_prof_id_vsig()
3735 t->profile_cookie = map->profile_cookie; in ice_add_prof_id_vsig()
3736 t->prof_id = map->prof_id; in ice_add_prof_id_vsig()
3737 t->tcam_count = map->ptg_cnt; in ice_add_prof_id_vsig()
3762 t->tcam[i].ptg = map->ptg[i]; in ice_add_prof_id_vsig()
3763 t->tcam[i].prof_id = map->prof_id; in ice_add_prof_id_vsig()
3764 t->tcam[i].tcam_idx = tcam_idx; in ice_add_prof_id_vsig()
3765 t->tcam[i].attr = map->attr[i]; in ice_add_prof_id_vsig()
3766 t->tcam[i].in_use = true; in ice_add_prof_id_vsig()
3770 p->prof_id = t->tcam[i].prof_id; in ice_add_prof_id_vsig()
3771 p->ptg = t->tcam[i].ptg; in ice_add_prof_id_vsig()
3773 p->tcam_idx = t->tcam[i].tcam_idx; in ice_add_prof_id_vsig()
3776 status = ice_tcam_write_entry(hw, blk, t->tcam[i].tcam_idx, in ice_add_prof_id_vsig()
3777 t->tcam[i].prof_id, in ice_add_prof_id_vsig()
3778 t->tcam[i].ptg, vsig, 0, 0, in ice_add_prof_id_vsig()
3792 list_add_tail(&t->list, in ice_add_prof_id_vsig()
3795 list_add(&t->list, in ice_add_prof_id_vsig()
3804 devm_kfree(ice_hw_to_dev(hw), t); in ice_add_prof_id_vsig()
3871 struct ice_vsig_prof *t; in ice_create_vsig_from_lst() local
3883 list_for_each_entry(t, lst, list) { in ice_create_vsig_from_lst()
3885 status = ice_add_prof_id_vsig(hw, blk, vsig, t->profile_cookie, in ice_create_vsig_from_lst()
3906 struct ice_vsig_prof *t; in ice_find_prof_vsig() local
3912 t = kzalloc(sizeof(*t), GFP_KERNEL); in ice_find_prof_vsig()
3913 if (!t) in ice_find_prof_vsig()
3916 t->profile_cookie = hdl; in ice_find_prof_vsig()
3917 list_add(&t->list, &lst); in ice_find_prof_vsig()
3921 list_del(&t->list); in ice_find_prof_vsig()
3922 kfree(t); in ice_find_prof_vsig()