Lines Matching refs:aregion
59 struct mlxsw_sp_acl_atcam_region *aregion; member
136 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; in mlxsw_sp_acl_erp_table_entry_size() local
139 return erp_core->erpt_entries_size[aregion->type]; in mlxsw_sp_acl_erp_table_entry_size()
183 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_master_mask_update()
394 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; in mlxsw_sp_acl_erp_table_erp_add()
414 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; in mlxsw_sp_acl_erp_table_erp_del()
427 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_table_enable()
442 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_table_disable()
495 erp_table->aregion->type, in mlxsw_sp_acl_erp_table_expand()
510 erp_table->aregion->type, old_base_index); in mlxsw_sp_acl_erp_table_expand()
518 erp_table->aregion->type, in mlxsw_sp_acl_erp_table_expand()
528 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; in mlxsw_acl_erp_table_bf_add() local
533 list_for_each_entry(aentry, &aregion->entries_list, list) { in mlxsw_acl_erp_table_bf_add()
534 err = mlxsw_sp_acl_bf_entry_add(aregion->region->mlxsw_sp, in mlxsw_acl_erp_table_bf_add()
536 aregion, erp_bank, aentry); in mlxsw_acl_erp_table_bf_add()
544 list_for_each_entry_continue_reverse(aentry, &aregion->entries_list, in mlxsw_acl_erp_table_bf_add()
546 mlxsw_sp_acl_bf_entry_del(aregion->region->mlxsw_sp, in mlxsw_acl_erp_table_bf_add()
548 aregion, erp_bank, aentry); in mlxsw_acl_erp_table_bf_add()
556 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; in mlxsw_acl_erp_table_bf_del() local
560 list_for_each_entry_reverse(aentry, &aregion->entries_list, list) in mlxsw_acl_erp_table_bf_del()
561 mlxsw_sp_acl_bf_entry_del(aregion->region->mlxsw_sp, in mlxsw_acl_erp_table_bf_del()
563 aregion, erp_bank, aentry); in mlxsw_acl_erp_table_bf_del()
575 erp_table->aregion->type, in mlxsw_sp_acl_erp_region_table_trans()
622 erp_table->aregion->type, in mlxsw_sp_acl_erp_region_table_trans()
641 erp_table->aregion->type, in mlxsw_sp_acl_erp_region_master_mask_trans()
649 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_region_erp_add()
666 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_region_erp_del()
773 erp_table->aregion->type, in __mlxsw_sp_acl_erp_table_other_dec()
1005 mlxsw_sp_acl_erp_mask_get(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_mask_get() argument
1008 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_mask_get()
1022 void mlxsw_sp_acl_erp_mask_put(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_mask_put() argument
1026 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_mask_put()
1034 struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_bf_insert() argument
1048 aregion, erp_bank, aentry); in mlxsw_sp_acl_erp_bf_insert()
1052 struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_bf_remove() argument
1066 aregion, erp_bank, aentry); in mlxsw_sp_acl_erp_bf_remove()
1224 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_delta_create() local
1225 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_delta_create()
1266 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_delta_destroy() local
1267 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_delta_destroy()
1277 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_root_create() local
1278 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_root_create()
1290 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_root_destroy() local
1291 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_root_destroy()
1306 mlxsw_sp_acl_erp_table_create(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_table_create() argument
1317 hints, aregion); in mlxsw_sp_acl_erp_table_create()
1323 erp_table->erp_core = aregion->atcam->erp_core; in mlxsw_sp_acl_erp_table_create()
1326 erp_table->aregion = aregion; in mlxsw_sp_acl_erp_table_create()
1346 mlxsw_sp_acl_erp_master_mask_init(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_master_mask_init() argument
1348 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_erp_master_mask_init()
1351 mlxsw_reg_percr_pack(percr_pl, aregion->region->id); in mlxsw_sp_acl_erp_master_mask_init()
1356 mlxsw_sp_acl_erp_region_param_init(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_region_param_init() argument
1358 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_erp_region_param_init()
1361 mlxsw_reg_pererp_pack(pererp_pl, aregion->region->id, false, false, 0, in mlxsw_sp_acl_erp_region_param_init()
1368 struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_hints_check() argument
1371 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_hints_check()
1406 mlxsw_sp_acl_erp_rehash_hints_get(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_rehash_hints_get() argument
1408 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_rehash_hints_get()
1409 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_erp_rehash_hints_get()
1422 err = mlxsw_sp_acl_erp_hints_check(mlxsw_sp, aregion, hints, in mlxsw_sp_acl_erp_rehash_hints_get()
1445 int mlxsw_sp_acl_erp_region_init(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_region_init() argument
1452 erp_table = mlxsw_sp_acl_erp_table_create(aregion, hints); in mlxsw_sp_acl_erp_region_init()
1455 aregion->erp_table = erp_table; in mlxsw_sp_acl_erp_region_init()
1458 err = mlxsw_sp_acl_erp_master_mask_init(aregion); in mlxsw_sp_acl_erp_region_init()
1463 err = mlxsw_sp_acl_erp_region_param_init(aregion); in mlxsw_sp_acl_erp_region_init()
1475 void mlxsw_sp_acl_erp_region_fini(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_region_fini() argument
1477 mlxsw_sp_acl_erp_table_destroy(aregion->erp_table); in mlxsw_sp_acl_erp_region_fini()