Home
last modified time | relevance | path

Searched refs:VCAP_CID_LOOKUP_SIZE (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api.h16 #define VCAP_CID_LOOKUP_SIZE 100000 /* Chains in a lookup */ macro
H A Dvcap_api.c992 int max_cid = roundup(cid + 1, VCAP_CID_LOOKUP_SIZE); in vcap_admin_rule_count()
993 int min_cid = rounddown(cid, VCAP_CID_LOOKUP_SIZE); in vcap_admin_rule_count()
1619 int cid_next = admin->first_cid + VCAP_CID_LOOKUP_SIZE; in vcap_chain_id_to_lookup()
1624 cid += VCAP_CID_LOOKUP_SIZE, cid_next += VCAP_CID_LOOKUP_SIZE) in vcap_chain_id_to_lookup()
1675 to_cid %= VCAP_CID_LOOKUP_SIZE; in vcap_chain_offset()
1678 diff %= VCAP_CID_LOOKUP_SIZE; /* Limit to a value within a lookup */ in vcap_chain_offset()
1696 next_cid = roundup(src_cid + 1, VCAP_CID_LOOKUP_SIZE); in vcap_is_next_lookup()
2221 int cid = rounddown(dst_cid, VCAP_CID_LOOKUP_SIZE); in vcap_path_exist()
3022 int next_chain = chain + VCAP_CID_LOOKUP_SIZE; in vcap_enable_rules()
3223 if (src_cid % VCAP_CID_LOOKUP_SIZE) in vcap_enable_lookups()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_flower.c349 int link_val = target_cid % VCAP_CID_LOOKUP_SIZE; in lan966x_tc_add_rule_link_target()