Searched refs:erp_core (Results 1 – 2 of 2) sorted by relevance
58 struct mlxsw_sp_acl_erp_core *erp_core; member130 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() local139 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() argument307 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 …]
154 struct mlxsw_sp_acl_erp_core *erp_core; member