Lines Matching defs:ai
184 /* Update ai bits in tcam sw entry */
203 /* Get ai bits from tcam sw entry */
267 /* Update ai bits in sram sw entry */
289 /* Read ai bits from sram sw entry */
293 /* ai is stored on bits 90->97; so it spreads across two u32 */
585 /* Set ai bits for next iteration */
666 /* Clear all ai bits for next iteration */
688 static int mvpp2_prs_vlan_find(struct mvpp2 *priv, unsigned short tpid, int ai)
712 /* Get current ai value from tcam */
717 if (ai != ai_bits)
729 static int mvpp2_prs_vlan_add(struct mvpp2 *priv, unsigned short tpid, int ai,
738 tid = mvpp2_prs_vlan_find(priv, tpid, ai);
775 /* Clear all ai bits for next iteration */
778 if (ai == MVPP2_PRS_SINGLE_VLAN_AI) {
782 ai |= MVPP2_PRS_DBL_VLAN_AI_BIT;
786 mvpp2_prs_tcam_ai_update(&pe, ai, MVPP2_PRS_SRAM_AI_MASK);
800 /* Get first free double vlan ai number */
851 int tid_aux, tid, ai, ret = 0;
865 /* Set ai value for new double vlan entry */
866 ai = mvpp2_prs_double_vlan_ai_free_get(priv);
867 if (ai < 0)
868 return ai;
894 priv->prs_double_vlans[ai] = true;
905 mvpp2_prs_sram_ai_update(&pe, ai | MVPP2_PRS_DBL_VLAN_AI_BIT,
1292 /* Clear all sram ai bits for next iteration */
1318 /* Clear all ai bits for next iteration */
1344 /* Clear all ai bits for next iteration */
1594 /* Clear ai for next iterations */
2040 /* Clear all ai bits for next iteration */
2145 /* Clear all ai bits for next iteration */