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()
392 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; in mlxsw_sp_acl_erp_table_erp_add()
412 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; in mlxsw_sp_acl_erp_table_erp_del()
425 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_table_enable()
440 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_table_disable()
493 erp_table->aregion->type, in mlxsw_sp_acl_erp_table_expand()
508 erp_table->aregion->type, old_base_index); in mlxsw_sp_acl_erp_table_expand()
516 erp_table->aregion->type, in mlxsw_sp_acl_erp_table_expand()
526 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; in mlxsw_acl_erp_table_bf_add() local
531 list_for_each_entry(aentry, &aregion->entries_list, list) { in mlxsw_acl_erp_table_bf_add()
532 err = mlxsw_sp_acl_bf_entry_add(aregion->region->mlxsw_sp, in mlxsw_acl_erp_table_bf_add()
534 aregion, erp_bank, aentry); in mlxsw_acl_erp_table_bf_add()
542 list_for_each_entry_continue_reverse(aentry, &aregion->entries_list, in mlxsw_acl_erp_table_bf_add()
544 mlxsw_sp_acl_bf_entry_del(aregion->region->mlxsw_sp, in mlxsw_acl_erp_table_bf_add()
546 aregion, erp_bank, aentry); in mlxsw_acl_erp_table_bf_add()
554 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; in mlxsw_acl_erp_table_bf_del() local
558 list_for_each_entry_reverse(aentry, &aregion->entries_list, list) in mlxsw_acl_erp_table_bf_del()
559 mlxsw_sp_acl_bf_entry_del(aregion->region->mlxsw_sp, in mlxsw_acl_erp_table_bf_del()
561 aregion, erp_bank, aentry); in mlxsw_acl_erp_table_bf_del()
573 erp_table->aregion->type, in mlxsw_sp_acl_erp_region_table_trans()
620 erp_table->aregion->type, in mlxsw_sp_acl_erp_region_table_trans()
639 erp_table->aregion->type, in mlxsw_sp_acl_erp_region_master_mask_trans()
647 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_region_erp_add()
664 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; in mlxsw_sp_acl_erp_region_erp_del()
771 erp_table->aregion->type, in __mlxsw_sp_acl_erp_table_other_dec()
1003 mlxsw_sp_acl_erp_mask_get(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_mask_get() argument
1006 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_mask_get()
1020 void mlxsw_sp_acl_erp_mask_put(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_mask_put() argument
1024 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_mask_put()
1032 struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_bf_insert() argument
1046 aregion, erp_bank, aentry); in mlxsw_sp_acl_erp_bf_insert()
1050 struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_bf_remove() argument
1064 aregion, erp_bank, aentry); in mlxsw_sp_acl_erp_bf_remove()
1234 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_delta_create() local
1235 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_delta_create()
1276 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_delta_destroy() local
1277 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_delta_destroy()
1287 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_root_create() local
1288 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_root_create()
1300 struct mlxsw_sp_acl_atcam_region *aregion = priv; in mlxsw_sp_acl_erp_root_destroy() local
1301 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_root_destroy()
1317 mlxsw_sp_acl_erp_table_create(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_table_create() argument
1328 hints, aregion); in mlxsw_sp_acl_erp_table_create()
1334 erp_table->erp_core = aregion->atcam->erp_core; in mlxsw_sp_acl_erp_table_create()
1337 erp_table->aregion = aregion; in mlxsw_sp_acl_erp_table_create()
1357 mlxsw_sp_acl_erp_master_mask_init(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_master_mask_init() argument
1359 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_erp_master_mask_init()
1362 mlxsw_reg_percr_pack(percr_pl, aregion->region->id); in mlxsw_sp_acl_erp_master_mask_init()
1367 mlxsw_sp_acl_erp_region_param_init(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_region_param_init() argument
1369 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_erp_region_param_init()
1372 mlxsw_reg_pererp_pack(pererp_pl, aregion->region->id, false, false, 0, in mlxsw_sp_acl_erp_region_param_init()
1379 struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_hints_check() argument
1382 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_hints_check()
1417 mlxsw_sp_acl_erp_rehash_hints_get(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_rehash_hints_get() argument
1419 struct mlxsw_sp_acl_erp_table *erp_table = aregion->erp_table; in mlxsw_sp_acl_erp_rehash_hints_get()
1420 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_erp_rehash_hints_get()
1433 err = mlxsw_sp_acl_erp_hints_check(mlxsw_sp, aregion, hints, in mlxsw_sp_acl_erp_rehash_hints_get()
1456 int mlxsw_sp_acl_erp_region_init(struct mlxsw_sp_acl_atcam_region *aregion, in mlxsw_sp_acl_erp_region_init() argument
1463 erp_table = mlxsw_sp_acl_erp_table_create(aregion, hints); in mlxsw_sp_acl_erp_region_init()
1466 aregion->erp_table = erp_table; in mlxsw_sp_acl_erp_region_init()
1469 err = mlxsw_sp_acl_erp_master_mask_init(aregion); in mlxsw_sp_acl_erp_region_init()
1474 err = mlxsw_sp_acl_erp_region_param_init(aregion); in mlxsw_sp_acl_erp_region_init()
1486 void mlxsw_sp_acl_erp_region_fini(struct mlxsw_sp_acl_atcam_region *aregion) in mlxsw_sp_acl_erp_region_fini() argument
1488 mlxsw_sp_acl_erp_table_destroy(aregion->erp_table); in mlxsw_sp_acl_erp_region_fini()