Searched refs:elusage (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_keys.h | 144 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument 145 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX) 148 mlxsw_afk_element_usage_add(struct mlxsw_afk_element_usage *elusage, in mlxsw_afk_element_usage_add() argument 151 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add() 155 mlxsw_afk_element_usage_zero(struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_element_usage_zero() argument 157 bitmap_zero(elusage->usage, MLXSW_AFK_ELEMENT_MAX); in mlxsw_afk_element_usage_zero() 161 mlxsw_afk_element_usage_fill(struct mlxsw_afk_element_usage *elusage, in mlxsw_afk_element_usage_fill() argument 167 mlxsw_afk_element_usage_zero(elusage); in mlxsw_afk_element_usage_fill() 169 mlxsw_afk_element_usage_add(elusage, elements[i]); in mlxsw_afk_element_usage_fill() 202 struct mlxsw_afk_element_usage *elusage); [all …]
|
D | core_acl_flex_keys.c | 116 struct mlxsw_afk_element_usage elusage; member 122 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_elements_eq() argument 124 return memcmp(&key_info->elusage, elusage, sizeof(*elusage)) == 0; in mlxsw_afk_key_info_elements_eq() 129 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_find() argument 134 if (mlxsw_afk_key_info_elements_eq(key_info, elusage)) in mlxsw_afk_key_info_find() 216 mlxsw_afk_element_usage_add(&key_info->elusage, element); in mlxsw_afk_picker_key_info_add() 257 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_picker() argument 288 mlxsw_afk_element_usage_for_each(element, elusage) in mlxsw_afk_picker() 311 } while (!bitmap_equal(elusage_chosen, elusage->usage, in mlxsw_afk_picker() 325 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_create() argument [all …]
|
D | spectrum2_mr_tcam.c | 55 struct mlxsw_afk_element_usage elusage; in mlxsw_sp2_mr_tcam_ipv4_init() local 59 mlxsw_afk_element_usage_fill(&elusage, in mlxsw_sp2_mr_tcam_ipv4_init() 66 &elusage); in mlxsw_sp2_mr_tcam_ipv4_init() 106 struct mlxsw_afk_element_usage elusage; in mlxsw_sp2_mr_tcam_ipv6_init() local 110 mlxsw_afk_element_usage_fill(&elusage, in mlxsw_sp2_mr_tcam_ipv6_init() 117 &elusage); in mlxsw_sp2_mr_tcam_ipv6_init()
|
D | spectrum_acl_tcam.c | 489 struct mlxsw_afk_element_usage *elusage, in mlxsw_sp_acl_tcam_vgroup_vregion_find() argument 511 elusage); in mlxsw_sp_acl_tcam_vgroup_vregion_find() 544 struct mlxsw_afk_element_usage *elusage, in mlxsw_sp_acl_tcam_vgroup_use_patterns() argument 555 WARN_ON(!mlxsw_afk_element_usage_subset(elusage, out)); in mlxsw_sp_acl_tcam_vgroup_use_patterns() 563 if (mlxsw_afk_element_usage_subset(elusage, out)) in mlxsw_sp_acl_tcam_vgroup_use_patterns() 566 memcpy(out, elusage, sizeof(*out)); in mlxsw_sp_acl_tcam_vgroup_use_patterns() 773 struct mlxsw_afk_element_usage *elusage) in mlxsw_sp_acl_tcam_vregion_create() argument 791 vregion->key_info = mlxsw_afk_key_info_get(afk, elusage); in mlxsw_sp_acl_tcam_vregion_create() 861 struct mlxsw_afk_element_usage *elusage) in mlxsw_sp_acl_tcam_vregion_get() argument 868 elusage, &need_split); in mlxsw_sp_acl_tcam_vregion_get() [all …]
|
D | spectrum_flower.c | 857 &rulei.values.elusage); in mlxsw_sp_flower_tmplt_create()
|