Searched refs:elusage (Results 1 – 5 of 5) sorted by relevance
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_keys.c | 111 struct mlxsw_afk_element_usage elusage; member 117 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_elements_eq() argument 119 return memcmp(&key_info->elusage, elusage, sizeof(*elusage)) == 0; in mlxsw_afk_key_info_elements_eq() 124 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_find() argument 129 if (mlxsw_afk_key_info_elements_eq(key_info, elusage)) in mlxsw_afk_key_info_find() 210 mlxsw_afk_element_usage_add(&key_info->elusage, element); in mlxsw_afk_picker_key_info_add() 221 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_picker() argument 244 mlxsw_afk_element_usage_for_each(element, elusage) in mlxsw_afk_picker() 260 } while (!mlxsw_afk_key_info_elements_eq(key_info, elusage)); in mlxsw_afk_picker() 270 struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_key_info_create() argument [all …]
|
D | core_acl_flex_keys.h | 131 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument 132 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX) 135 mlxsw_afk_element_usage_add(struct mlxsw_afk_element_usage *elusage, in mlxsw_afk_element_usage_add() argument 138 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add() 142 mlxsw_afk_element_usage_zero(struct mlxsw_afk_element_usage *elusage) in mlxsw_afk_element_usage_zero() argument 144 bitmap_zero(elusage->usage, MLXSW_AFK_ELEMENT_MAX); in mlxsw_afk_element_usage_zero() 148 mlxsw_afk_element_usage_fill(struct mlxsw_afk_element_usage *elusage, in mlxsw_afk_element_usage_fill() argument 154 mlxsw_afk_element_usage_zero(elusage); in mlxsw_afk_element_usage_fill() 156 mlxsw_afk_element_usage_add(elusage, elements[i]); in mlxsw_afk_element_usage_fill() 189 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 | 484 struct mlxsw_afk_element_usage *elusage, in mlxsw_sp_acl_tcam_vgroup_vregion_find() argument 506 elusage); in mlxsw_sp_acl_tcam_vgroup_vregion_find() 539 struct mlxsw_afk_element_usage *elusage, in mlxsw_sp_acl_tcam_vgroup_use_patterns() argument 550 WARN_ON(!mlxsw_afk_element_usage_subset(elusage, out)); in mlxsw_sp_acl_tcam_vgroup_use_patterns() 558 if (mlxsw_afk_element_usage_subset(elusage, out)) in mlxsw_sp_acl_tcam_vgroup_use_patterns() 561 memcpy(out, elusage, sizeof(*out)); in mlxsw_sp_acl_tcam_vgroup_use_patterns() 755 struct mlxsw_afk_element_usage *elusage) in mlxsw_sp_acl_tcam_vregion_create() argument 773 vregion->key_info = mlxsw_afk_key_info_get(afk, elusage); in mlxsw_sp_acl_tcam_vregion_create() 874 struct mlxsw_afk_element_usage *elusage) in mlxsw_sp_acl_tcam_vregion_get() argument 881 elusage, &need_split); in mlxsw_sp_acl_tcam_vregion_get() [all …]
|
D | spectrum_flower.c | 710 &rulei.values.elusage); in mlxsw_sp_flower_tmplt_create()
|