Lines Matching refs:lookup
11 /* Arbitrarily chosen constants for encoding the VCAP block and lookup number
19 #define VCAP_IS1_CHAIN(lookup) \
20 (1 * VCAP_BLOCK + (lookup) * VCAP_LOOKUP)
21 #define VCAP_IS2_CHAIN(lookup, pag) \
22 (2 * VCAP_BLOCK + (lookup) * VCAP_LOOKUP + (pag))
26 int lookup, pag;
40 for (lookup = 0; lookup < VCAP_IS1_NUM_LOOKUPS; lookup++)
41 if (chain == VCAP_IS1_CHAIN(lookup))
44 for (lookup = 0; lookup < VCAP_IS2_NUM_LOOKUPS; lookup++)
46 if (chain == VCAP_IS2_CHAIN(lookup, pag))
71 int lookup;
79 lookup = ocelot_chain_to_lookup(chain);
82 return chain - VCAP_IS2_CHAIN(lookup, 0);
121 /* Non-optional GOTO from VCAP IS2 lookup 0 to lookup 1.
128 /* VCAP IS2 lookup 1 cannot jump anywhere */
182 filter->lookup = ocelot_chain_to_lookup(chain);
210 filter->lookup != 0) {
212 "Trap action can only be offloaded to VCAP IS2 lookup 0");
228 filter->lookup != 0) {
230 "Police action can only be offloaded to VCAP IS2 lookup 0");
325 if (filter->block_id == VCAP_IS1 && filter->lookup == 2) {
365 if ((filter->block_id == VCAP_IS2 && filter->lookup == 1) ||