Searched refs:elusage (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_keys.c | 74 struct mlxsw_afk_element_usage elusage; member 80 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_elements_eq() argument 82 return memcmp(&key_info->elusage, elusage, sizeof(*elusage)) == 0; in mlxsw_afk_key_info_elements_eq() 87 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_find() argument 92 if (mlxsw_afk_key_info_elements_eq(key_info, elusage)) in mlxsw_afk_key_info_find() 175 mlxsw_afk_element_usage_add(&key_info->elusage, element); in mlxsw_afk_picker_key_info_add() 186 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_picker() argument 211 mlxsw_afk_element_usage_for_each(element, elusage) in mlxsw_afk_picker() 227 } while (!mlxsw_afk_key_info_elements_eq(key_info, elusage)); in mlxsw_afk_picker() 237 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_create() argument [all …]
|
D | core_acl_flex_keys.h | 163 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument 164 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX) 167 mlxsw_afk_element_usage_add(struct mlxsw_afk_element_usage *elusage, in mlxsw_afk_element_usage_add() argument 170 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add() 174 mlxsw_afk_element_usage_zero(struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_element_usage_zero() argument 176 bitmap_zero(elusage->usage, MLXSW_AFK_ELEMENT_MAX); in mlxsw_afk_element_usage_zero() 180 mlxsw_afk_element_usage_fill(struct mlxsw_afk_element_usage *elusage, in mlxsw_afk_element_usage_fill() argument 186 mlxsw_afk_element_usage_zero(elusage); in mlxsw_afk_element_usage_fill() 188 mlxsw_afk_element_usage_add(elusage, elements[i]); in mlxsw_afk_element_usage_fill() 221 struct mlxsw_afk_element_usage *elusage); [all …]
|
D | spectrum2_mr_tcam.c | 56 struct mlxsw_afk_element_usage elusage; in mlxsw_sp2_mr_tcam_ipv4_init() local 60 mlxsw_afk_element_usage_fill(&elusage, in mlxsw_sp2_mr_tcam_ipv4_init() 67 &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 | 526 struct mlxsw_afk_element_usage *elusage, in mlxsw_sp_acl_tcam_vgroup_vregion_find() argument 548 elusage); in mlxsw_sp_acl_tcam_vgroup_vregion_find() 581 struct mlxsw_afk_element_usage *elusage, in mlxsw_sp_acl_tcam_vgroup_use_patterns() argument 592 WARN_ON(!mlxsw_afk_element_usage_subset(elusage, out)); in mlxsw_sp_acl_tcam_vgroup_use_patterns() 600 if (mlxsw_afk_element_usage_subset(elusage, out)) in mlxsw_sp_acl_tcam_vgroup_use_patterns() 603 memcpy(out, elusage, sizeof(*out)); in mlxsw_sp_acl_tcam_vgroup_use_patterns() 797 struct mlxsw_afk_element_usage *elusage) in mlxsw_sp_acl_tcam_vregion_create() argument 815 vregion->key_info = mlxsw_afk_key_info_get(afk, elusage); in mlxsw_sp_acl_tcam_vregion_create() 916 struct mlxsw_afk_element_usage *elusage) in mlxsw_sp_acl_tcam_vregion_get() argument 923 elusage, &need_split); in mlxsw_sp_acl_tcam_vregion_get() [all …]
|
D | spectrum_flower.c | 575 &rulei.values.elusage); in mlxsw_sp_flower_tmplt_create()
|