Lines Matching refs:ptg

749 		sect->value[index] = hw->blk[blk].xlt1.ptypes[index].ptg;
763 * @ptg: pointer to variable that receives the PTG
770 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg)
772 if (ptype >= ICE_XLT1_CNT || !ptg)
775 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg;
783 * @ptg: the PTG to allocate
788 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg)
790 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true;
797 * @ptg: the PTG ID to free
802 void ice_ptg_free(struct ice_hw *hw, enum ice_block blk, u8 ptg)
806 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = false;
807 p = hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype;
809 p->ptg = ICE_DEFAULT_PTG;
815 hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype = NULL;
823 * @ptg: the PTG to remove the ptype from
829 ice_ptg_remove_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg)
837 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use)
841 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype)
845 p = hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype;
846 ch = &hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype;
857 hw->blk[blk].xlt1.ptypes[ptype].ptg = ICE_DEFAULT_PTG;
868 * @ptg: the PTG to add or move the ptype to
876 ice_ptg_add_mv_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg)
884 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use && ptg != ICE_DEFAULT_PTG)
892 if (original_ptg == ptg)
900 if (ptg == ICE_DEFAULT_PTG)
905 hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype;
906 hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype =
909 hw->blk[blk].xlt1.ptypes[ptype].ptg = ptg;
910 hw->blk[blk].xlt1.t[ptype] = ptg;
1620 u8 ptg;
1622 ptg = hw->blk[blk].xlt1.t[pt];
1623 if (ptg != ICE_DEFAULT_PTG) {
1624 ice_ptg_alloc_val(hw, blk, ptg);
1625 ice_ptg_add_mv_ptype(hw, blk, pt, ptg);
2137 * @ptg: packet type group (PTG) portion of key
2147 ice_prof_gen_key(struct ice_hw *hw, enum ice_block blk, u8 ptg, u16 vsig,
2154 inkey.xlt1 = ptg;
2194 * @ptg: packet type group (PTG) portion of key
2204 u8 prof_id, u8 ptg, u16 vsig, u8 cdid, u16 flags,
2212 status = ice_prof_gen_key(hw, blk, ptg, vsig, cdid, flags, vl_msk,
2383 p->value[0] = tmp->ptg;
2585 u8 ptg;
2590 if (ice_ptg_find_ptype(hw, blk, ptype, &ptg))
2594 if (ice_is_bit_set(ptgs_used, ptg))
2597 ice_set_bit(ptg, ptgs_used);
2598 prof->ptg[prof->ptg_cnt] = ptg;
2956 p->ptg = map->ptg[i];
3049 p->tcam[i].ptg = map->ptg[i];
3164 tcam->ptg, vsig, 0, 0, vl_msk, dc_msk,
3174 p->ptg = tcam->ptg;
3226 used = ice_is_bit_set(ptgs_used, t->tcam[i].ptg);
3252 ice_set_bit(t->tcam[i].ptg, ptgs_used);
3321 t->tcam[i].ptg = map->ptg[i];
3329 p->ptg = t->tcam[i].ptg;
3336 t->tcam[i].ptg, vsig, 0, 0,