Home
last modified time | relevance | path

Searched refs:MLXSW_CORE_RES_VALID (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_cnt.c54 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, COUNTER_SIZE_PACKETS_BYTES)) in mlxsw_sp_counter_sub_pools_prepare()
60 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, COUNTER_SIZE_ROUTER_BASIC)) in mlxsw_sp_counter_sub_pools_prepare()
76 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, COUNTER_POOL_SIZE)) in mlxsw_sp_counter_pool_init()
Dspectrum_acl_erp.c1075 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_2KB) || in mlxsw_sp_acl_erp_tables_sizes_query()
1076 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_4KB) || in mlxsw_sp_acl_erp_tables_sizes_query()
1077 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_8KB) || in mlxsw_sp_acl_erp_tables_sizes_query()
1078 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_12KB)) in mlxsw_sp_acl_erp_tables_sizes_query()
1102 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_ERPT_BANK_SIZE) || in mlxsw_sp_acl_erp_tables_init()
1103 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_ERPT_BANKS)) in mlxsw_sp_acl_erp_tables_init()
Dspectrum1_mr_tcam.c301 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_TCAM_RULES)) in mlxsw_sp1_mr_tcam_init()
Dpci.c1464 if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V2) && in mlxsw_pci_init()
1467 else if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V1) && in mlxsw_pci_init()
1470 else if ((MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0) && in mlxsw_pci_init()
1472 !MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0)) { in mlxsw_pci_init()
Dcore.h298 #define MLXSW_CORE_RES_VALID(mlxsw_core, short_res_id) \ macro
Dspectrum_buffers.c569 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, CELL_SIZE)) in mlxsw_sp_buffers_init()
572 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_BUFFER_SIZE)) in mlxsw_sp_buffers_init()
Dspectrum_acl_atcam.c125 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_LARGE_KEY_ID)) in mlxsw_sp_acl_atcam_region_12kb_init()
Dcore.c93 if (MLXSW_CORE_RES_VALID(mlxsw_core, MAX_SYSTEM_PORT)) in mlxsw_ports_init()
1016 if (MLXSW_CORE_RES_VALID(mlxsw_core, MAX_LAG) && in mlxsw_core_bus_device_register()
1017 MLXSW_CORE_RES_VALID(mlxsw_core, MAX_LAG_MEMBERS)) { in mlxsw_core_bus_device_register()
Dspectrum_mr_tcam.c575 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MC_ERIF_LIST_ENTRIES)) in mlxsw_sp_mr_tcam_init()
Dspectrum.c3487 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_CPU_POLICERS)) in mlxsw_sp_cpu_policers_set()
3550 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_TRAP_GROUPS)) in mlxsw_sp_trap_groups_set()
3674 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LAG) || in mlxsw_sp_lag_init()
3675 !MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LAG_MEMBERS)) in mlxsw_sp_lag_init()
3994 if (!MLXSW_CORE_RES_VALID(mlxsw_core, KVD_SIZE)) in mlxsw_sp1_resources_kvd_register()
4067 if (!MLXSW_CORE_RES_VALID(mlxsw_core, KVD_SINGLE_MIN_SIZE) || in mlxsw_sp_kvd_sizes_get()
4068 !MLXSW_CORE_RES_VALID(mlxsw_core, KVD_DOUBLE_MIN_SIZE)) in mlxsw_sp_kvd_sizes_get()
Dspectrum_acl_tcam.c95 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, KVD_SIZE)) in mlxsw_sp_acl_tcam_priority_get()
Dspectrum_span.c21 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_SPAN)) in mlxsw_sp_span_init()
Dspectrum_router.c623 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LPM_TREES)) in mlxsw_sp_lpm_init()
924 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_VRS)) in mlxsw_sp_vrs_init()
7390 if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_RIFS)) in __mlxsw_sp_router_init()