Lines Matching full:lookup

12 /* Arbitrarily chosen constants for encoding the VCAP block and lookup number
20 #define VCAP_IS1_CHAIN(lookup) \ argument
21 (1 * VCAP_BLOCK + (lookup) * VCAP_LOOKUP)
22 #define VCAP_IS2_CHAIN(lookup, pag) \ argument
23 (2 * VCAP_BLOCK + (lookup) * VCAP_LOOKUP + (pag))
30 int lookup, pag; in ocelot_chain_to_block() local
44 for (lookup = 0; lookup < VCAP_IS1_NUM_LOOKUPS; lookup++) in ocelot_chain_to_block()
45 if (chain == VCAP_IS1_CHAIN(lookup)) in ocelot_chain_to_block()
48 for (lookup = 0; lookup < VCAP_IS2_NUM_LOOKUPS; lookup++) in ocelot_chain_to_block()
50 if (chain == VCAP_IS2_CHAIN(lookup, pag)) in ocelot_chain_to_block()
78 int lookup; in ocelot_chain_to_pag() local
86 lookup = ocelot_chain_to_lookup(chain); in ocelot_chain_to_pag()
89 return chain - VCAP_IS2_CHAIN(lookup, 0); in ocelot_chain_to_pag()
117 /* Lookup 2 of VCAP IS1 can really support non-optional GOTOs, in ocelot_is_goto_target_valid()
129 /* Non-optional GOTO from VCAP IS2 lookup 0 to lookup 1. in ocelot_is_goto_target_valid()
136 /* VCAP IS2 lookup 1 can goto to PSFP block if hardware support */ in ocelot_is_goto_target_valid()
256 filter->lookup = ocelot_chain_to_lookup(chain); in ocelot_flower_parse_action()
300 filter->lookup != 0) { in ocelot_flower_parse_action()
302 "Trap action can only be offloaded to VCAP IS2 lookup 0"); in ocelot_flower_parse_action()
323 filter->lookup != 0) { in ocelot_flower_parse_action()
325 "Police action can only be offloaded to VCAP IS2 lookup 0 or PSFP"); in ocelot_flower_parse_action()
454 if (filter->block_id == VCAP_IS1 && filter->lookup == 2) { in ocelot_flower_parse_action()
502 if ((filter->block_id == VCAP_IS2 && filter->lookup == 1) || in ocelot_flower_parse_action()