Lines Matching refs:ptg
663 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument
665 if (ptype >= ICE_XLT1_CNT || !ptg) in ice_ptg_find_ptype()
668 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg; in ice_ptg_find_ptype()
681 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg) in ice_ptg_alloc_val() argument
683 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val()
697 ice_ptg_remove_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg) in ice_ptg_remove_ptype() argument
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()
725 hw->blk[blk].xlt1.ptypes[ptype].ptg = ICE_DEFAULT_PTG; in ice_ptg_remove_ptype()
744 ice_ptg_add_mv_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg) in ice_ptg_add_mv_ptype() argument
752 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use && ptg != ICE_DEFAULT_PTG) in ice_ptg_add_mv_ptype()
760 if (original_ptg == ptg) in ice_ptg_add_mv_ptype()
768 if (ptg == ICE_DEFAULT_PTG) 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()
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()
1818 u8 ptg; in ice_init_sw_xlt1_db() local
1820 ptg = hw->blk[blk].xlt1.t[pt]; in ice_init_sw_xlt1_db()
1821 if (ptg != ICE_DEFAULT_PTG) { in ice_init_sw_xlt1_db()
1822 ice_ptg_alloc_val(hw, blk, ptg); in ice_init_sw_xlt1_db()
1823 ice_ptg_add_mv_ptype(hw, blk, pt, ptg); in ice_init_sw_xlt1_db()
2326 ice_prof_gen_key(struct ice_hw *hw, enum ice_block blk, u8 ptg, u16 vsig, in ice_prof_gen_key() argument
2333 inkey.xlt1 = ptg; in ice_prof_gen_key()
2383 u8 prof_id, u8 ptg, u16 vsig, u8 cdid, u16 flags, in ice_tcam_write_entry() argument
2391 status = ice_prof_gen_key(hw, blk, ptg, vsig, cdid, flags, vl_msk, in ice_tcam_write_entry()
2552 p->value[0] = tmp->ptg; in ice_prof_bld_xlt1()
2932 ice_add_prof_attrib(struct ice_prof_map *prof, u8 ptg, u16 ptype, in ice_add_prof_attrib() argument
2942 prof->ptg[prof->ptg_cnt] = ptg; in ice_add_prof_attrib()
3043 u8 ptg; in ice_add_prof() local
3050 if (ice_ptg_find_ptype(hw, blk, ptype, &ptg)) in ice_add_prof()
3054 if (test_bit(ptg, ptgs_used)) in ice_add_prof()
3057 __set_bit(ptg, ptgs_used); in ice_add_prof()
3061 status = ice_add_prof_attrib(prof, ptg, ptype, in ice_add_prof()
3069 prof->ptg[prof->ptg_cnt] = ptg; in ice_add_prof()
3389 p->ptg = map->ptg[i]; in ice_get_prof()
3482 p->tcam[i].ptg = map->ptg[i]; in ice_add_prof_to_lst()
3602 tcam->ptg, vsig, 0, tcam->attr.flags, in ice_prof_tcam_ena_dis()
3612 p->ptg = tcam->ptg; in ice_prof_tcam_ena_dis()
3662 if (test_bit(t->tcam[i].ptg, ptgs_used) && in ice_adj_prof_priorities()
3674 } else if (!test_bit(t->tcam[i].ptg, ptgs_used) && in ice_adj_prof_priorities()
3688 __set_bit(t->tcam[i].ptg, ptgs_used); in ice_adj_prof_priorities()
3762 t->tcam[i].ptg = map->ptg[i]; in ice_add_prof_id_vsig()
3771 p->ptg = t->tcam[i].ptg; in ice_add_prof_id_vsig()
3778 t->tcam[i].ptg, vsig, 0, 0, in ice_add_prof_id_vsig()