MLXSW_CORE_RES_GET   94 drivers/net/ethernet/mellanox/mlxsw/core.c 		mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core,
MLXSW_CORE_RES_GET 1149 drivers/net/ethernet/mellanox/mlxsw/core.c 			MLXSW_CORE_RES_GET(mlxsw_core, MAX_LAG) *
MLXSW_CORE_RES_GET 1150 drivers/net/ethernet/mellanox/mlxsw/core.c 			MLXSW_CORE_RES_GET(mlxsw_core, MAX_LAG_MEMBERS);
MLXSW_CORE_RES_GET 1819 drivers/net/ethernet/mellanox/mlxsw/core.c 	return MLXSW_CORE_RES_GET(mlxsw_core, MAX_LAG_MEMBERS) * lag_id +
MLXSW_CORE_RES_GET 1848 drivers/net/ethernet/mellanox/mlxsw/core.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_core, MAX_LAG_MEMBERS); i++) {
MLXSW_CORE_RES_GET 1479 drivers/net/ethernet/mellanox/mlxsw/pci.c 	    MLXSW_CORE_RES_GET(mlxsw_core, CQE_V2))
MLXSW_CORE_RES_GET 1482 drivers/net/ethernet/mellanox/mlxsw/pci.c 		 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V1))
MLXSW_CORE_RES_GET 1485 drivers/net/ethernet/mellanox/mlxsw/pci.c 		  MLXSW_CORE_RES_GET(mlxsw_core, CQE_V0)) ||
MLXSW_CORE_RES_GET 4068 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	local_ports_in_1x = MLXSW_CORE_RES_GET(mlxsw_core, LOCAL_PORTS_IN_1X);
MLXSW_CORE_RES_GET 4069 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	local_ports_in_2x = MLXSW_CORE_RES_GET(mlxsw_core, LOCAL_PORTS_IN_2X);
MLXSW_CORE_RES_GET 4146 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	local_ports_in_1x = MLXSW_CORE_RES_GET(mlxsw_core, LOCAL_PORTS_IN_1X);
MLXSW_CORE_RES_GET 4147 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	local_ports_in_2x = MLXSW_CORE_RES_GET(mlxsw_core, LOCAL_PORTS_IN_2X);
MLXSW_CORE_RES_GET 4459 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_cpu_policers = MLXSW_CORE_RES_GET(mlxsw_core, MAX_CPU_POLICERS);
MLXSW_CORE_RES_GET 4534 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_trap_groups = MLXSW_CORE_RES_GET(mlxsw_core, MAX_TRAP_GROUPS);
MLXSW_CORE_RES_GET 4535 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_cpu_policers = MLXSW_CORE_RES_GET(mlxsw_core, MAX_CPU_POLICERS);
MLXSW_CORE_RES_GET 4702 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp->lags = kcalloc(MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LAG),
MLXSW_CORE_RES_GET 5075 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	u32 single_size_min = MLXSW_CORE_RES_GET(mlxsw_core,
MLXSW_CORE_RES_GET 5077 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	u32 double_size_min = MLXSW_CORE_RES_GET(mlxsw_core,
MLXSW_CORE_RES_GET 5079 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	u32 kvd_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE);
MLXSW_CORE_RES_GET 5124 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	kvd_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE);
MLXSW_CORE_RES_GET 5179 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	kvd_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE);
MLXSW_CORE_RES_GET 5230 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		double_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE) -
MLXSW_CORE_RES_GET 5243 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		*p_single_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE) -
MLXSW_CORE_RES_GET 5247 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	if (*p_single_size < MLXSW_CORE_RES_GET(mlxsw_core, KVD_SINGLE_MIN_SIZE) ||
MLXSW_CORE_RES_GET 5248 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	    *p_double_size < MLXSW_CORE_RES_GET(mlxsw_core, KVD_DOUBLE_MIN_SIZE) ||
MLXSW_CORE_RES_GET 5249 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	    MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE) < *p_linear_size)
MLXSW_CORE_RES_GET 5633 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_lag = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LAG);
MLXSW_CORE_RES_GET 5676 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_lag_members = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET  393 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c 	kvdl_max_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE) -
MLXSW_CORE_RES_GET  394 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c 			MLXSW_CORE_RES_GET(mlxsw_core, KVD_SINGLE_MIN_SIZE) -
MLXSW_CORE_RES_GET  395 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c 			MLXSW_CORE_RES_GET(mlxsw_core, KVD_DOUBLE_MIN_SIZE);
MLXSW_CORE_RES_GET  206 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	max_tcam_rules = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_TCAM_RULES);
MLXSW_CORE_RES_GET  867 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c 	acl->afk = mlxsw_afk_create(MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET  129 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	max_lkey_id = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_LARGE_KEY_ID);
MLXSW_CORE_RES_GET  284 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS);
MLXSW_CORE_RES_GET  253 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	bf_bank_size = 1 << MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_BF_LOG);
MLXSW_CORE_RES_GET  129 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	max_tcam_rules = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_TCAM_RULES);
MLXSW_CORE_RES_GET 1503 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_2KB);
MLXSW_CORE_RES_GET 1506 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_4KB);
MLXSW_CORE_RES_GET 1509 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_8KB);
MLXSW_CORE_RES_GET 1512 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_12KB);
MLXSW_CORE_RES_GET 1527 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	erpt_bank_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET 1529 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	erp_core->num_erp_banks = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET  190 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c 	mlxsw_sp->afa = mlxsw_afa_create(MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET   47 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_tcam_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET   49 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS);
MLXSW_CORE_RES_GET   61 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_groups = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_GROUPS);
MLXSW_CORE_RES_GET   69 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	tcam->max_group_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET  111 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_priority = MLXSW_CORE_RES_GET(mlxsw_sp->core, KVD_SIZE) - 1;
MLXSW_CORE_RES_GET  916 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->cell_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, CELL_SIZE);
MLXSW_CORE_RES_GET  917 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->sb_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET  919 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	max_headroom_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET 1016 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (size > MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_BUFFER_SIZE)) {
MLXSW_CORE_RES_GET   39 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	pool_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, COUNTER_POOL_SIZE);
MLXSW_CORE_RES_GET   56 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	sub_pool->entry_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET   62 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	sub_pool->entry_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET   91 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	pool->pool_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, COUNTER_POOL_SIZE);
MLXSW_CORE_RES_GET  212 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	rif_count = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
MLXSW_CORE_RES_GET  262 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
MLXSW_CORE_RES_GET  282 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	return MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
MLXSW_CORE_RES_GET  551 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	rif_count = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
MLXSW_CORE_RES_GET  558 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
MLXSW_CORE_RES_GET  666 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
MLXSW_CORE_RES_GET  705 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
MLXSW_CORE_RES_GET   36 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c 	int erif_list_entries = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET  982 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	max = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV4);
MLXSW_CORE_RES_GET  984 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	max = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV6);
MLXSW_CORE_RES_GET  322 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	if (p->max > MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_BUFFER_SIZE)) {
MLXSW_CORE_RES_GET  637 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	max_trees = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LPM_TREES);
MLXSW_CORE_RES_GET  701 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
MLXSW_CORE_RES_GET  747 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
MLXSW_CORE_RES_GET  913 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
MLXSW_CORE_RES_GET  951 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	max_vrs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS);
MLXSW_CORE_RES_GET 5683 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
MLXSW_CORE_RES_GET 5882 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
MLXSW_CORE_RES_GET 6329 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++)
MLXSW_CORE_RES_GET 6425 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
MLXSW_CORE_RES_GET 6986 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
MLXSW_CORE_RES_GET 7902 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	u64 max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
MLXSW_CORE_RES_GET 7917 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++)
MLXSW_CORE_RES_GET 8054 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
MLXSW_CORE_RES_GET   24 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	mlxsw_sp->span.entries_count = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET 1478 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		max_lag_members = MLXSW_CORE_RES_GET(mlxsw_sp->core,
MLXSW_CORE_RES_GET 1931 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	max_lag_members = MLXSW_CORE_RES_GET(mlxsw_sp->core,