/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl_atcam.c | 35 int (*init)(struct mlxsw_sp_acl_atcam_region *aregion); 36 void (*fini)(struct mlxsw_sp_acl_atcam_region *aregion); 38 (*lkey_id_get)(struct mlxsw_sp_acl_atcam_region *aregion, 40 void (*lkey_id_put)(struct mlxsw_sp_acl_atcam_region *aregion, 73 mlxsw_sp_acl_atcam_region_generic_init(struct mlxsw_sp_acl_atcam_region *aregion) argument 82 aregion->priv = region_generic; 88 mlxsw_sp_acl_atcam_region_generic_fini(struct mlxsw_sp_acl_atcam_region *aregion) argument 90 kfree(aregion->priv); 94 mlxsw_sp_acl_atcam_generic_lkey_id_get(struct mlxsw_sp_acl_atcam_region *aregion, argument 99 region_generic = aregion 104 mlxsw_sp_acl_atcam_generic_lkey_id_put(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_lkey_id *lkey_id) argument 118 mlxsw_sp_acl_atcam_region_12kb_init(struct mlxsw_sp_acl_atcam_region *aregion) argument 157 mlxsw_sp_acl_atcam_region_12kb_fini(struct mlxsw_sp_acl_atcam_region *aregion) argument 167 mlxsw_sp_acl_atcam_lkey_id_create(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_lkey_id_ht_key *ht_key) argument 208 mlxsw_sp_acl_atcam_lkey_id_destroy(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_lkey_id *lkey_id) argument 221 mlxsw_sp_acl_atcam_12kb_lkey_id_get(struct mlxsw_sp_acl_atcam_region *aregion, char *enc_key, u8 erp_id) argument 247 mlxsw_sp_acl_atcam_12kb_lkey_id_put(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_lkey_id *lkey_id) argument 291 mlxsw_sp_acl_atcam_region_type_init(struct mlxsw_sp_acl_atcam_region *aregion) argument 315 mlxsw_sp_acl_atcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam *atcam, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_tcam_region *region, void *hints_priv, const struct mlxsw_sp_acl_ctcam_region_ops *ops) argument 355 mlxsw_sp_acl_atcam_region_fini(struct mlxsw_sp_acl_atcam_region *aregion) argument 364 mlxsw_sp_acl_atcam_chunk_init(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_chunk *achunk, unsigned int priority) argument 378 mlxsw_sp_acl_atcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) argument 420 mlxsw_sp_acl_atcam_region_entry_remove(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry) argument 442 mlxsw_sp_acl_atcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) argument 470 __mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) argument 545 __mlxsw_sp_acl_atcam_entry_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry) argument 558 __mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) argument 567 mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_chunk *achunk, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) argument 592 mlxsw_sp_acl_atcam_entry_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_chunk *achunk, struct mlxsw_sp_acl_atcam_entry *aentry) argument 605 mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) argument 638 mlxsw_sp_acl_atcam_rehash_hints_get(struct mlxsw_sp_acl_atcam_region *aregion) argument [all...] |
H A D | spectrum_acl_tcam.h | 213 struct mlxsw_sp_acl_atcam_region *aregion, 217 void mlxsw_sp_acl_atcam_region_fini(struct mlxsw_sp_acl_atcam_region *aregion); 218 void mlxsw_sp_acl_atcam_chunk_init(struct mlxsw_sp_acl_atcam_region *aregion, 223 struct mlxsw_sp_acl_atcam_region *aregion, 228 struct mlxsw_sp_acl_atcam_region *aregion, 232 struct mlxsw_sp_acl_atcam_region *aregion, 240 mlxsw_sp_acl_atcam_rehash_hints_get(struct mlxsw_sp_acl_atcam_region *aregion); 260 mlxsw_sp_acl_erp_mask_get(struct mlxsw_sp_acl_atcam_region *aregion, 262 void mlxsw_sp_acl_erp_mask_put(struct mlxsw_sp_acl_atcam_region *aregion, 265 struct mlxsw_sp_acl_atcam_region *aregion, [all...] |
H A D | spectrum2_acl_tcam.c | 17 struct mlxsw_sp_acl_atcam_region aregion; member in struct:mlxsw_sp2_acl_tcam_region 35 struct mlxsw_sp_acl_atcam_region *aregion; local 39 aregion = mlxsw_sp_acl_tcam_cregion_aregion(cregion); 42 erp_mask = mlxsw_sp_acl_erp_mask_get(aregion, mask, true); 54 struct mlxsw_sp_acl_atcam_region *aregion; local 57 aregion = mlxsw_sp_acl_tcam_cregion_aregion(cregion); 60 mlxsw_sp_acl_erp_mask_put(aregion, aentry->erp_mask); 161 ®ion->aregion, 171 mlxsw_sp_acl_atcam_region_fini(®ion->aregion); 185 return mlxsw_sp_acl_atcam_rehash_hints_get(®ion->aregion); [all...] |
H A D | spectrum_acl_erp.c | 59 struct mlxsw_sp_acl_atcam_region *aregion; member in struct:mlxsw_sp_acl_erp_table 136 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; local 139 return erp_core->erpt_entries_size[aregion->type]; 183 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; 394 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; 414 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; 427 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; 442 struct mlxsw_sp_acl_tcam_region *region = erp_table->aregion->region; 495 erp_table->aregion 528 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; local 556 struct mlxsw_sp_acl_atcam_region *aregion = erp_table->aregion; local 1005 mlxsw_sp_acl_erp_mask_get(struct mlxsw_sp_acl_atcam_region *aregion, const char *mask, bool ctcam) argument 1022 mlxsw_sp_acl_erp_mask_put(struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_erp_mask *erp_mask) argument 1033 mlxsw_sp_acl_erp_bf_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_erp_mask *erp_mask, struct mlxsw_sp_acl_atcam_entry *aentry) argument 1051 mlxsw_sp_acl_erp_bf_remove(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_erp_mask *erp_mask, struct mlxsw_sp_acl_atcam_entry *aentry) argument 1236 struct mlxsw_sp_acl_atcam_region *aregion = priv; local 1278 struct mlxsw_sp_acl_atcam_region *aregion = priv; local 1289 struct mlxsw_sp_acl_atcam_region *aregion = priv; local 1302 struct mlxsw_sp_acl_atcam_region *aregion = priv; local 1319 mlxsw_sp_acl_erp_table_create(struct mlxsw_sp_acl_atcam_region *aregion, struct objagg_hints *hints) argument 1359 mlxsw_sp_acl_erp_master_mask_init(struct mlxsw_sp_acl_atcam_region *aregion) argument 1369 mlxsw_sp_acl_erp_region_param_init(struct mlxsw_sp_acl_atcam_region *aregion) argument 1380 mlxsw_sp_acl_erp_hints_check(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct objagg_hints *hints, bool *p_rehash_needed) argument 1419 mlxsw_sp_acl_erp_rehash_hints_get(struct mlxsw_sp_acl_atcam_region *aregion) argument 1458 mlxsw_sp_acl_erp_region_init(struct mlxsw_sp_acl_atcam_region *aregion, void *hints_priv) argument 1488 mlxsw_sp_acl_erp_region_fini(struct mlxsw_sp_acl_atcam_region *aregion) argument [all...] |
H A D | spectrum_acl_bloom_filter.c | 232 __mlxsw_sp_acl_bf_key_encode(struct mlxsw_sp_acl_atcam_region *aregion, argument 237 struct mlxsw_afk_key_info *key_info = aregion->region->key_info; 245 (aregion->region->id << 4)); 260 mlxsw_sp2_acl_bf_key_encode(struct mlxsw_sp_acl_atcam_region *aregion, argument 264 __mlxsw_sp_acl_bf_key_encode(aregion, aentry, output, len, 274 struct mlxsw_sp_acl_atcam_region *aregion, 280 mlxsw_sp2_acl_bf_key_encode(aregion, aentry, bf_key, &bf_size); 373 mlxsw_sp4_acl_bf_key_encode(struct mlxsw_sp_acl_atcam_region *aregion, argument 377 struct mlxsw_afk_key_info *key_info = aregion->region->key_info; 381 __mlxsw_sp_acl_bf_key_encode(aregion, aentr 273 mlxsw_sp2_acl_bf_index_get(struct mlxsw_sp_acl_bf *bf, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry) argument 391 mlxsw_sp4_acl_bf_index_get(struct mlxsw_sp_acl_bf *bf, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry) argument 411 mlxsw_sp_acl_bf_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_bf *bf, struct mlxsw_sp_acl_atcam_region *aregion, unsigned int erp_bank, struct mlxsw_sp_acl_atcam_entry *aentry) argument 455 mlxsw_sp_acl_bf_entry_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_bf *bf, struct mlxsw_sp_acl_atcam_region *aregion, unsigned int erp_bank, struct mlxsw_sp_acl_atcam_entry *aentry) argument [all...] |
/linux-master/include/trace/events/ |
H A D | mlxsw.h | 18 const struct mlxsw_sp_acl_atcam_region *aregion), 20 TP_ARGS(mlxsw_sp, aregion), 24 __field(const void *, aregion) 29 __entry->aregion = aregion; 32 TP_printk("mlxsw_sp %p, aregion %p", 33 __entry->mlxsw_sp, __entry->aregion)
|