Lines Matching refs:mlxsw_sp
50 static int mlxsw_sp1_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp1_acl_tcam_init() argument
56 static void mlxsw_sp1_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, void *priv) in mlxsw_sp1_acl_tcam_fini() argument
61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_ctcam_region_catchall_add() argument
70 rulei = mlxsw_sp_acl_rulei_create(mlxsw_sp->acl, NULL); in mlxsw_sp1_acl_ctcam_region_catchall_add()
81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
93 mlxsw_sp_acl_rulei_destroy(mlxsw_sp, rulei); in mlxsw_sp1_acl_ctcam_region_catchall_add()
100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_ctcam_region_catchall_del() argument
105 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_del()
108 mlxsw_sp_acl_rulei_destroy(mlxsw_sp, rulei); in mlxsw_sp1_acl_ctcam_region_catchall_del()
113 mlxsw_sp1_acl_tcam_region_init(struct mlxsw_sp *mlxsw_sp, void *region_priv, in mlxsw_sp1_acl_tcam_region_init() argument
121 err = mlxsw_sp_acl_ctcam_region_init(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_tcam_region_init()
126 err = mlxsw_sp1_acl_ctcam_region_catchall_add(mlxsw_sp, region); in mlxsw_sp1_acl_tcam_region_init()
138 mlxsw_sp1_acl_tcam_region_fini(struct mlxsw_sp *mlxsw_sp, void *region_priv) in mlxsw_sp1_acl_tcam_region_fini() argument
142 mlxsw_sp1_acl_ctcam_region_catchall_del(mlxsw_sp, region); in mlxsw_sp1_acl_tcam_region_fini()
147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_region_associate() argument
170 static int mlxsw_sp1_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_add() argument
179 return mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_tcam_entry_add()
184 static void mlxsw_sp1_acl_tcam_entry_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_del() argument
192 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_tcam_entry_del()
197 mlxsw_sp1_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_action_replace() argument
205 mlxsw_sp1_acl_tcam_region_entry_activity_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_region_entry_activity_get() argument
215 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl); in mlxsw_sp1_acl_tcam_region_entry_activity_get()
223 mlxsw_sp1_acl_tcam_entry_activity_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_activity_get() argument
232 return mlxsw_sp1_acl_tcam_region_entry_activity_get(mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_activity_get()