Lines Matching refs:xlt1

668 	*ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg;  in ice_ptg_find_ptype()
683 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val()
705 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use) in ice_ptg_remove_ptype()
709 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype) in ice_ptg_remove_ptype()
713 p = hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype; in ice_ptg_remove_ptype()
714 ch = &hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype; in ice_ptg_remove_ptype()
716 if (ptype == (p - hw->blk[blk].xlt1.ptypes)) { in ice_ptg_remove_ptype()
725 hw->blk[blk].xlt1.ptypes[ptype].ptg = ICE_DEFAULT_PTG; in ice_ptg_remove_ptype()
726 hw->blk[blk].xlt1.ptypes[ptype].next_ptype = NULL; in ice_ptg_remove_ptype()
752 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use && ptg != ICE_DEFAULT_PTG) in ice_ptg_add_mv_ptype()
772 hw->blk[blk].xlt1.ptypes[ptype].next_ptype = in ice_ptg_add_mv_ptype()
773 hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype; in ice_ptg_add_mv_ptype()
774 hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype = in ice_ptg_add_mv_ptype()
775 &hw->blk[blk].xlt1.ptypes[ptype]; in ice_ptg_add_mv_ptype()
777 hw->blk[blk].xlt1.ptypes[ptype].ptg = ptg; in ice_ptg_add_mv_ptype()
778 hw->blk[blk].xlt1.t[ptype] = ptg; in ice_ptg_add_mv_ptype()
785 u16 xlt1; /* # XLT1 entries */ member
1817 for (pt = 0; pt < hw->blk[blk].xlt1.count; pt++) { in ice_init_sw_xlt1_db()
1820 ptg = hw->blk[blk].xlt1.t[pt]; in ice_init_sw_xlt1_db()
1883 struct ice_xlt1_section *xlt1; in ice_fill_tbl() local
1910 xlt1 = sect; in ice_fill_tbl()
1911 src = xlt1->value; in ice_fill_tbl()
1912 sect_len = le16_to_cpu(xlt1->count) * in ice_fill_tbl()
1913 sizeof(*hw->blk[block_id].xlt1.t); in ice_fill_tbl()
1914 dst = hw->blk[block_id].xlt1.t; in ice_fill_tbl()
1915 dst_len = hw->blk[block_id].xlt1.count * in ice_fill_tbl()
1916 sizeof(*hw->blk[block_id].xlt1.t); in ice_fill_tbl()
2011 ice_fill_tbl(hw, blk_id, hw->blk[blk_id].xlt1.sid); in ice_fill_blk_tbls()
2109 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.ptypes); in ice_free_hw_tbls()
2110 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.ptg_tbl); in ice_free_hw_tbls()
2111 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.t); in ice_free_hw_tbls()
2154 struct ice_xlt1 *xlt1 = &hw->blk[i].xlt1; in ice_clear_hw_tbls() local
2165 memset(xlt1->ptypes, 0, xlt1->count * sizeof(*xlt1->ptypes)); in ice_clear_hw_tbls()
2166 memset(xlt1->ptg_tbl, 0, in ice_clear_hw_tbls()
2167 ICE_MAX_PTGS * sizeof(*xlt1->ptg_tbl)); in ice_clear_hw_tbls()
2168 memset(xlt1->t, 0, xlt1->count * sizeof(*xlt1->t)); in ice_clear_hw_tbls()
2200 struct ice_xlt1 *xlt1 = &hw->blk[i].xlt1; in ice_init_hw_tbls() local
2216 xlt1->sid = ice_blk_sids[i][ICE_SID_XLT1_OFF]; in ice_init_hw_tbls()
2217 xlt1->count = blk_sizes[i].xlt1; in ice_init_hw_tbls()
2219 xlt1->ptypes = devm_kcalloc(ice_hw_to_dev(hw), xlt1->count, in ice_init_hw_tbls()
2220 sizeof(*xlt1->ptypes), GFP_KERNEL); in ice_init_hw_tbls()
2222 if (!xlt1->ptypes) in ice_init_hw_tbls()
2225 xlt1->ptg_tbl = devm_kcalloc(ice_hw_to_dev(hw), ICE_MAX_PTGS, in ice_init_hw_tbls()
2226 sizeof(*xlt1->ptg_tbl), in ice_init_hw_tbls()
2229 if (!xlt1->ptg_tbl) in ice_init_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()
2333 inkey.xlt1 = ptg; in ice_prof_gen_key()
2610 u16 xlt1 = 0; in ice_upd_prof_hw() local
2622 xlt1++; in ice_upd_prof_hw()
2638 sects = xlt1 + xlt2 + tcam + es; in ice_upd_prof_hw()
2665 if (xlt1) { in ice_upd_prof_hw()