Lines Matching refs:cregion

41 				       struct mlxsw_sp_acl_ctcam_region *cregion,  in mlxsw_sp_acl_ctcam_region_entry_insert()  argument
46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert()
67 err = cregion->ops->entry_insert(cregion, centry, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
82 cregion->ops->entry_remove(cregion, centry); in mlxsw_sp_acl_ctcam_region_entry_insert()
88 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_remove() argument
94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove()
97 cregion->ops->entry_remove(cregion, centry); in mlxsw_sp_acl_ctcam_region_entry_remove()
102 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_action_replace() argument
111 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_action_replace()
124 struct mlxsw_sp_acl_ctcam_region *cregion = priv; in mlxsw_sp_acl_ctcam_region_parman_resize() local
125 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_parman_resize()
140 struct mlxsw_sp_acl_ctcam_region *cregion = priv; in mlxsw_sp_acl_ctcam_region_parman_move() local
141 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_parman_move()
158 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_init() argument
162 cregion->region = region; in mlxsw_sp_acl_ctcam_region_init()
163 cregion->ops = ops; in mlxsw_sp_acl_ctcam_region_init()
164 cregion->parman = parman_create(&mlxsw_sp_acl_ctcam_region_parman_ops, in mlxsw_sp_acl_ctcam_region_init()
165 cregion); in mlxsw_sp_acl_ctcam_region_init()
166 if (!cregion->parman) in mlxsw_sp_acl_ctcam_region_init()
171 void mlxsw_sp_acl_ctcam_region_fini(struct mlxsw_sp_acl_ctcam_region *cregion) in mlxsw_sp_acl_ctcam_region_fini() argument
173 parman_destroy(cregion->parman); in mlxsw_sp_acl_ctcam_region_fini()
176 void mlxsw_sp_acl_ctcam_chunk_init(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_chunk_init() argument
180 parman_prio_init(cregion->parman, &cchunk->parman_prio, priority); in mlxsw_sp_acl_ctcam_chunk_init()
189 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_entry_add() argument
197 err = parman_item_add(cregion->parman, &cchunk->parman_prio, in mlxsw_sp_acl_ctcam_entry_add()
202 err = mlxsw_sp_acl_ctcam_region_entry_insert(mlxsw_sp, cregion, centry, in mlxsw_sp_acl_ctcam_entry_add()
209 parman_item_remove(cregion->parman, &cchunk->parman_prio, in mlxsw_sp_acl_ctcam_entry_add()
215 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_entry_del() argument
219 mlxsw_sp_acl_ctcam_region_entry_remove(mlxsw_sp, cregion, centry); in mlxsw_sp_acl_ctcam_entry_del()
220 parman_item_remove(cregion->parman, &cchunk->parman_prio, in mlxsw_sp_acl_ctcam_entry_del()
225 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_entry_action_replace() argument
229 return mlxsw_sp_acl_ctcam_region_entry_action_replace(mlxsw_sp, cregion, in mlxsw_sp_acl_ctcam_entry_action_replace()