Home
last modified time | relevance | path

Searched refs:erp_core (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c58 struct mlxsw_sp_acl_erp_core *erp_core; member
130 return erp->index % erp->erp_table->erp_core->num_erp_banks; in mlxsw_sp_acl_erp_bank_get()
137 struct mlxsw_sp_acl_erp_core *erp_core = erp_table->erp_core; 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()
298 mlxsw_sp_acl_erp_table_alloc(struct mlxsw_sp_acl_erp_core *erp_core, in mlxsw_sp_acl_erp_table_alloc() argument
307 if (num_erps % erp_core->num_erp_banks != 0) in mlxsw_sp_acl_erp_table_alloc()
310 entry_size = erp_core->erpt_entries_size[region_type]; in mlxsw_sp_acl_erp_table_alloc()
311 num_rows = num_erps / erp_core->num_erp_banks; in mlxsw_sp_acl_erp_table_alloc()
313 index = gen_pool_alloc(erp_core->erp_tables, num_rows * entry_size); in mlxsw_sp_acl_erp_table_alloc()
323 mlxsw_sp_acl_erp_table_free(struct mlxsw_sp_acl_erp_core *erp_core, in mlxsw_sp_acl_erp_table_free() argument
[all …]
Dspectrum_acl_tcam.h154 struct mlxsw_sp_acl_erp_core *erp_core; member