Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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
306 if (num_erps % erp_core->num_erp_banks != 0) in mlxsw_sp_acl_erp_table_alloc()
309 entry_size = erp_core->erpt_entries_size[region_type]; in mlxsw_sp_acl_erp_table_alloc()
310 num_rows = num_erps / erp_core->num_erp_banks; in mlxsw_sp_acl_erp_table_alloc()
312 *p_index = gen_pool_alloc(erp_core->erp_tables, num_rows * entry_size); in mlxsw_sp_acl_erp_table_alloc()
321 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.h158 struct mlxsw_sp_acl_erp_core *erp_core; member