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.c982 int max_cid = roundup(cid + 1, VCAP_CID_LOOKUP_SIZE); in vcap_admin_rule_count()
983 int min_cid = rounddown(cid, VCAP_CID_LOOKUP_SIZE); in vcap_admin_rule_count()
1609 int cid_next = admin->first_cid + VCAP_CID_LOOKUP_SIZE; in vcap_chain_id_to_lookup()
1614 cid += VCAP_CID_LOOKUP_SIZE, cid_next += VCAP_CID_LOOKUP_SIZE) in vcap_chain_id_to_lookup()
1665 to_cid %= VCAP_CID_LOOKUP_SIZE; in vcap_chain_offset()
1668 diff %= VCAP_CID_LOOKUP_SIZE; /* Limit to a value within a lookup */ in vcap_chain_offset()
1686 next_cid = roundup(src_cid + 1, VCAP_CID_LOOKUP_SIZE); in vcap_is_next_lookup()
2211 int cid = rounddown(dst_cid, VCAP_CID_LOOKUP_SIZE); in vcap_path_exist()
3009 int next_chain = chain + VCAP_CID_LOOKUP_SIZE; in vcap_enable_rules()
3210 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()