/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_policer.c | 88 if (!MLXSW_CORE_RES_VALID(core, MAX_GLOBAL_POLICERS) || in mlxsw_sp_policer_single_rate_family_init() 89 !MLXSW_CORE_RES_VALID(core, MAX_CPU_POLICERS)) in mlxsw_sp_policer_single_rate_family_init() 411 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_GLOBAL_POLICERS) || in mlxsw_sp_policer_resources_register() 412 !MLXSW_CORE_RES_VALID(mlxsw_core, MAX_CPU_POLICERS)) in mlxsw_sp_policer_resources_register()
|
D | spectrum_cnt.c | 255 if (!MLXSW_CORE_RES_VALID(mlxsw_core, COUNTER_POOL_SIZE) || in mlxsw_sp_counter_resources_register() 256 !MLXSW_CORE_RES_VALID(mlxsw_core, COUNTER_BANK_SIZE)) in mlxsw_sp_counter_resources_register()
|
D | spectrum_acl_erp.c | 1486 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_2KB) || in mlxsw_sp_acl_erp_tables_sizes_query() 1487 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_4KB) || in mlxsw_sp_acl_erp_tables_sizes_query() 1488 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_8KB) || in mlxsw_sp_acl_erp_tables_sizes_query() 1489 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_12KB)) in mlxsw_sp_acl_erp_tables_sizes_query() 1513 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_ERPT_BANK_SIZE) || in mlxsw_sp_acl_erp_tables_init() 1514 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_ERPT_BANKS)) in mlxsw_sp_acl_erp_tables_init()
|
D | spectrum_port_range.c | 166 if (!MLXSW_CORE_RES_VALID(core, ACL_MAX_L4_PORT_RANGE)) in mlxsw_sp_port_range_init()
|
D | spectrum2_acl_tcam.c | 85 if (MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_DEFAULT_ACTIONS)) in mlxsw_sp2_acl_tcam_init()
|
D | spectrum.c | 267 if (!MLXSW_CORE_RES_VALID(mlxsw_core, FID)) { in mlxsw_sp_txhdr_ptp_data_construct() 2539 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_CPU_POLICERS)) in mlxsw_sp_cpu_policers_set() 2579 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_TRAP_GROUPS)) in mlxsw_sp_trap_groups_set() 2622 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_CPU_POLICERS)) in mlxsw_sp_traps_init() 2752 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LAG_MEMBERS)) in mlxsw_sp_lag_init() 3659 if (!MLXSW_CORE_RES_VALID(mlxsw_core, KVD_SIZE)) in mlxsw_sp1_resources_kvd_register() 3719 if (!MLXSW_CORE_RES_VALID(mlxsw_core, KVD_SIZE)) in mlxsw_sp2_resources_kvd_register() 3739 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_SPAN)) in mlxsw_sp_resources_span_register() 3759 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_RIF_MAC_PROFILES)) in mlxsw_sp_resources_rif_mac_profile_register() 3782 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_RIFS)) in mlxsw_sp_resources_rifs_register() [all …]
|
D | spectrum_acl_bloom_filter.c | 492 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_BF_LOG)) in mlxsw_sp_acl_bf_init()
|
D | spectrum_pgt.c | 315 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, PGT_SIZE)) in mlxsw_sp_pgt_init()
|
D | spectrum1_mr_tcam.c | 301 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_TCAM_RULES)) in mlxsw_sp1_mr_tcam_init()
|
D | spectrum_nve.c | 1106 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV4) || in mlxsw_sp_nve_resources_query() 1107 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV6)) in mlxsw_sp_nve_resources_query()
|
D | pci.c | 2013 if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V2) && in mlxsw_pci_init() 2016 else if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V1) && in mlxsw_pci_init() 2019 else if ((MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0) && in mlxsw_pci_init() 2021 !MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0)) { in mlxsw_pci_init()
|
D | spectrum_buffers.c | 1258 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, CELL_SIZE)) in mlxsw_sp_buffers_init() 1261 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, GUARANTEED_SHARED_BUFFER)) in mlxsw_sp_buffers_init() 1264 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_HEADROOM_SIZE)) in mlxsw_sp_buffers_init()
|
D | spectrum_mr_tcam.c | 575 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MC_ERIF_LIST_ENTRIES)) in mlxsw_sp_mr_tcam_init()
|
D | core.h | 463 #define MLXSW_CORE_RES_VALID(mlxsw_core, short_res_id) \ macro
|
D | spectrum_acl_atcam.c | 125 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_LARGE_KEY_ID)) in mlxsw_sp_acl_atcam_region_12kb_init()
|
D | core.c | 146 if (MLXSW_CORE_RES_VALID(mlxsw_core, MAX_SYSTEM_PORT)) in mlxsw_ports_init() 199 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_LAG)) in mlxsw_core_max_lag() 2150 if (!err && MLXSW_CORE_RES_VALID(mlxsw_core, MAX_LAG_MEMBERS)) { in __mlxsw_core_bus_device_register()
|
D | spectrum_span.c | 86 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_SPAN)) in mlxsw_sp_span_init()
|
D | spectrum_acl_tcam.c | 46 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, KVD_SIZE)) in mlxsw_sp_acl_tcam_priority_get()
|
D | spectrum_fid.c | 2373 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_NVE_FLOOD_PRF)) in mlxsw_sp_fid_check_flood_profile_id()
|
D | spectrum_router.c | 715 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LPM_TREES)) in mlxsw_sp_lpm_init() 1037 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_VRS)) in mlxsw_sp_vrs_init() 11111 if (!MLXSW_CORE_RES_VALID(core, MAX_RIF_MAC_PROFILES)) in mlxsw_sp_rifs_init() 11536 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_RIFS)) in __mlxsw_sp_router_init()
|